lua-users home
lua-l archive

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


For what it's worth, I like to use debug.setfenv/debug.getfenv with a
newproxy() userdata to store private data with an object from Lua.
There's no way to do this with tables (that I know of) except with a
relatively clunky local table where the keys are objects and the
values are the private data.

~Jonathan