[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Another take on locals by default.
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Tue, 22 May 2012 15:28:12 +0200
I mean, why was the syntax (or a variation thereof, since it freed the
% operator) removed?
It is not incompatible with either proper lexical scoping or
It just add syntactic guards and prevents potential blunders
On Tue, May 22, 2012 at 3:16 PM, Alex Queiroz <firstname.lastname@example.org> wrote:
> On Tue, May 22, 2012 at 3:12 PM, Pierre-Yves Gérardy <email@example.com> wrote:
>> On Tue, May 22, 2012 at 3:05 PM, Matthew Wild <firstname.lastname@example.org> 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.