lua-users home
lua-l archive

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

I hadn't been tracking the Lua 5.2 changes too closely, but I just noticed that lua_getfenv()/lua_setfenv() are gone.  I had been using userdata environment tables as a way of letting a userdata reference other Lua values.  I had previously been advised that giving each userdata its own metatable and mutating those metatables frequently would have bad performance consequences (see

What's the Lua 5.2 way of letting a userdata contain references to other Lua values?