lua-users home
lua-l archive

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


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 <steve.j.donovan@gmail.com> wrote:
> On Mon, Nov 29, 2010 at 10:36 AM, Dirk Laurie <dpl@sun.ac.za> 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