lua-users home
lua-l archive

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

On Fri, Feb 17, 2012 at 10:27 AM, Sven Olsen <> wrote:
> PS: I'm a little suspicious that one of the reasons that LUA_ENV is exposed
> in lua_conf.h is to make it easy to switch the environment name from "_ENV"
> to "self", which has about the same effect as my patch.

Very interesting!  The downside is that the enclosing environment of a
method is not available, but they should all be upvalues anyway.

A easy-to-navigate site dedicated to patches would be useful, perhaps
like the snippets site.

steve d.