lua-users home
lua-l archive

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


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
read/write upvalues.

It just add syntactic guards and prevents potential blunders

-- Pierre-Yves


On Tue, May 22, 2012 at 3:16 PM, Alex Queiroz <asandroq@gmail.com> wrote:
> 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/
>