lAm 20.06.2021 um 20:54 schrieb Allin Cottrell:
On Sun, 20 Jun 2021, Sven Schreiber wrote:
> But seriously, there appear to be clear rules as to which series are
> locally available inside a function. Why should 'dataset' be banned then
> in that context?
According to the Guide, the "dataset" macro refers to "all the series
in the current dataset (except the pre-defined const)". In general,
within a function you do not have access to the entire current dataset,
Well I
guess it depends on the intended meaning of "current". I took it
to mean the local scope of the function.
The hansl idioms for creating a list as return value from a function
are (a) create a named list via a single function call, or if that's
not feasible (b) start by defining a null list then sequentially
append the series in question.
OK, what about this, should it be banned, too?:
<hansl>
function list cL (list L)
diff L
list out = *
return out
end function
open denmark
list inL = LRM LRY
list check = cL(inL)
list check print # LRM LRY d_LRM d_LRY
</hansl>
cheers
sven