[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lightweight function syntax: no need to change Lua
- From: Romulo <romuloab@...>
- Date: Mon, 29 Nov 2010 08:27:31 -0200
I think the person meant:
z = nil
local z = 42
('x,y')('x+y+z,x-y-z')(10,7) --> error: arith on a nil val
I can't remember if Lua 5.2 changes the lexical scoping of load'ed
chunks, but my bet is that it doesn't (although the new debug
functions can make it so, as previously demonstrated).
On 11/29/10, steve donovan <firstname.lastname@example.org> wrote:
> On Mon, Nov 29, 2010 at 10:36 AM, Dirk Laurie <email@example.com> wrote:
>> Do I really want people to perpetrate such things and still claim
>> they're writing Lua? Food for thought.
> Although this has been done without any modifications to the language,
> showing that a sufficiently powerful language is always capable of
> monstrosities. They can claim it's Lua, but they can't claim it's
> _good_ Lua ;)
> steve d.
Sent from my mobile device