[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3, _ENV and load(). What a mess.
- From: Nagaev Boris <bnagaev@...>
- Date: Sun, 29 Mar 2015 07:47:52 +0000
On Sun, Mar 29, 2015 at 1:03 AM, Jay Carlson <nop@nop.com> wrote:
> On Mar 28, 2015, at 12:18 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>
>> So, our view is: we do not want to treat _ENV in a special way because
>> really there is nothing special about it.
>
> If this were Python, a special case would be created so upvalue environment munging would have some reasonable, unsurprising result.
>
> ...even though the debug.* interface is not intended for casual use...
>
> Ten years later, everyone would deeply regret adding it to the pile of other special cases.
>
> Jay
Fortunately Lua is not Python.
Best regards,
Boris Nagaev
- References:
- Lua 5.3, _ENV and load(). What a mess., Sean Conner
- Re: Lua 5.3, _ENV and load(). What a mess., Dirk Laurie
- Re: Lua 5.3, _ENV and load(). What a mess., Tim Hill
- Re: Lua 5.3, _ENV and load(). What a mess., Roberto Ierusalimschy
- Re: Lua 5.3, _ENV and load(). What a mess., Jay Carlson