[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Another take on locals by default.
- From: Alex Queiroz <asandroq@...>
- Date: Tue, 22 May 2012 15:16:48 +0200
On Tue, May 22, 2012 at 3:12 PM, Pierre-Yves Gérardy <firstname.lastname@example.org> wrote:
> On Tue, May 22, 2012 at 3:05 PM, Matthew Wild <email@example.com> wrote:
>> http://www.lua.org/manual/4.0/manual.html#4.6 :)
> History repeats itself :-).
> Why was it dropped in Lua 5.0?
Proper closures and non-local variables were added in Lua 5.0. As the
manual says, upvalues were not real bindings but "frozen" values
created during function instantiation.