[Gretl-devel] bug which is new in 1.7.4

Allin Cottrell cottrell at wfu.edu
Thu Apr 3 12:48:55 EDT 2008


On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:

> On Thu, 3 Apr 2008, Allin Cottrell wrote:
> 
> > The simple fix, I think, is not to decrement i until we know that
> > the variable in question really has been deleted.  However, this
> > issue raises the question of whether the last model estimated
> > within a function that is returning should really be treated as
> > the "last model".

> I can confirm that the "simple fix" lets Sven's script and my 
> example script run, but the problem remains of the workspace 
> being contaminated by several local variables being promoted to 
> global.

Yes, you're right.

> I'm in favour of removing from the stack all locally estimated 
> models...

Me too.  I now realize that we do this for the ordinary MODEL 
type, in gretl_exec_state_clear, which is called after assigning 
function return values, but we don't do it for VARs and equation 
systems.  That's just an oversight.  I'll fix that.

Allin.


More information about the Gretl-devel mailing list