Dear Sven,
The behavior I expect is always
output "Variable x1 is not defined"
The problem with spoil()
is after running it x1 is visible
from inside any user-specified
function, e.g.
append to the previous script and run
function void fun4(void)
matrix x1 = 1
eval sin(x1)
end function
fun4()
After running spoil() output will be
? fun4()
The variable x1 is of type series, not acceptable in context
*** error in function fun4, line 1
matrix x1 = 1
Error executing script: halting
fun4()
Oleh
13 жовтня 2018, 16:49:35, від "Sven Schreiber" <svetosch(a)gmx.net>:
Am 13.10.2018 um 14:30 schrieb oleg_komashko(a)ukr.net:
>
>
> On the first run fu("x1") does not know
> global series 'x1' but after running spoil()
> fu("x1") knows and evaluates x1
>
> it what kind of behavior you are expecting instead? I _think_ I might know what your
problem is, but I don't want to speculate too much.
>
> thanks,
> sven
> _______________________________________________
> Gretl-devel mailing list
> Gretl-devel(a)lists.wfu.edu
>
http://lists.wfu.edu/mailman/listinfo/gretl-devel
>