[Gretl-devel] 'include' w/o 'open' -- new behavior

Riccardo (Jack) Lucchetti r.lucchetti at univpm.it
Fri Dec 14 04:52:25 EST 2007


On Fri, 14 Dec 2007, Sven Schreiber wrote:

> Riccardo (Jack) Lucchetti schrieb:
>> On Thu, 13 Dec 2007, Sven Schreiber wrote:
>> 
>>> Hi,
>>> 
>>> with 1.7.0 (and before that, too, I think) having an 'include' command in 
>>> a script without an open datafile caused an error message along the lines 
>>> "you have to open a datafile first".
>> 
>> Are you sure? The list of commands that is available before a dataset is 
>> open resides in the function ready_for_command(), which is near the end of 
>> the file lib/src/interact.c; thanks to the marvelous piece of software that 
>> cvs is, I was able to establish that the include command has been legal in 
>> that context since May 2005.
>> 
>> 
>
> Yes pretty sure because I switched back from snapshot to 1.7.0 just for 
> testing it. I said "along the lines" because I was translating back from 
> German and didn't check the exact wording.

Weird. Could you post an example?

Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche

r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti


More information about the Gretl-devel mailing list