lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Rich Artym wrote:

> Nope, that wasn't an example of it.  The function modifies
> the "foo" inside its own closure which is an entirely
> different scope, not the "foo" in the old scope that was
> obsoleted by the second "local foo".

Ah, I see what you mean.

I think what you're talking about is in fact impossible, at
least in pure Lua (and not counting the debug library, which
might make it possible.

-- 
Aaron