lua-users home
lua-l archive

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


On Fri, Dec 18, 2009 at 10:06 PM, Francesco Abbate <gslshell@gmail.com> wrote:
> Does this make sense ? Is there a more simple/obvious solution to my problem ?
Userdata can currently have individual environment tables, which have
no defined usage. What is wrong with using this table to store
references to other userdata? Your hypothetical lua_adduserdataref
function could then be implemented via lua_getfenv and lua_rawset.