[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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 <pygy79@gmail.com> wrote:
> On Tue, May 22, 2012 at 3:05 PM, Matthew Wild <mwild1@gmail.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.
--
-alex
http://www.artisancoder.com/