[Gretl-devel] 'include' w/o 'open' -- new behavior
Sven Schreiber
svetosch at gmx.net
Fri Dec 14 07:07:32 EST 2007
Riccardo (Jack) Lucchetti schrieb:
>
>
> I have the feeling that nothing is wrong with "include" per se.
Yes, except that 'include ./thisfile.inp' doesn't work.
> If my suspicion is right, your included file starts with an "if"
> statement, which is indeed illegal if no dataset is open (and rightly
> so).
But why "rightly so"? It's not at all obvious to me.
> If you use the if statement to de-activate a portion of the script
> unconditionally (as in "if 2>3"), it seems to me that commenting out
> the code is a much better solution.
Yeah except that AFAIK in gretl's editor it's not possible to do it with
a large chunk in one step. Or is there a hidden (or not so hidden) way?
thanks,
sven
More information about the Gretl-devel
mailing list