lua-users home
lua-l archive

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


On Mon, Aug 11, 2014 at 1:35 PM, Ashwin Hirschi <lua-l@reflexis.com> wrote:
>
>> This means you can write code like this in Lua:
>>
>> foo = 10
>> local _ENV = { foo=20 }
>> print(foo)
>
>
> You can write it, but it won't run... [since there's no more print! ;-)]
>
> Ashwin.
>

Oops, I forgot to store print in a local in my example. :P I
remembered loadstring!

/s/ Adam