Am 01.06.2015 um 12:27 schrieb Ignacio Diaz-Emparanza:
I have simplied the problem in the silly example below. Direct
aplication of function f1 seems not to have any problem, but when you
run it from function f2 for the series called 'const' this reports an
error for function 'nobs(y)' (This is for gretl from current cvs on
Ubuntu Linux 14.04)
function series f2(series y)
series cc = const
Apart from backward-compatibility issues, I'm not sure whether this
_should_ work. One could argue that the series "const" is not passed as
an argument to f2() and therefore should not be visible inside the function.
OTOH I guess one could also take the position that "const" is basically
the same thing as the $-accessors which are always globally visible,
also inside functions... But then perhaps an explicit $const accessor
should be introduced? (And then the same for "time", "index", and so
forth I guess.)
cheers,
sven