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.