[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Redefining locals
- From: "Aaron Brown" <aaron-lua@...>
- Date: Thu, 11 Nov 2004 09:55:20 -0500
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.