On Fri, 13 Oct 2006, Riccardo (Jack) Lucchetti wrote:
On Fri, October 13, 2006 15:22, Allin Cottrell wrote:
>> I can see the point, although personally I use (or would like to
>> use) gretl differently.
>
> I can see a case for having the behaviour that you expected (i.e.
> estimating a model via the gui updates the "last model" as seen
> from the console). That wouldn't be difficult to do.
Hmm. I don't know. I'm not able to say precisely why, but I'm
not comfortable with the idea that the result of a script may be
influenced by something outside the script itself.
I agree on that. But I think Sven was talking about something a
bit different from executing a script, namely interactive work at
the console. I believe the question is: should interactive work in
the gui program (by point and click or via console commands) be
treated as a single "thread", or should there be a distinct
"console thread", with its own notion of "last model"?
Personally, I'm not sure about this, but I have tripped over the
issue myself once or twice. E.g. estimate a model in the gui,
open the console, type "genr uh = $uhat", and get an error message
because there's no $uhat available...
Allin.