[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: _G, _ENV
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 12 Jul 2010 09:29:35 +0200
On Sun, Jul 11, 2010 at 11:46 PM, Jorge <xxopxe@gmail.com> wrote:
> I'd like to rise a question that seems to be being avoided in the
> current threads discussing such things, and it's absolutely critical.
>
> _G and _ENV are _UGLY.
>
Roberto thinks they should be ugly:
http://lua-users.org/lists/lua-l/2010-05/msg00481.html
The reason is that code that uses _ENV is likely to be black magic,
which should be wrapped up in a module (e.g. for a
backwards-compatible setfenv function)
steve d.