lua-users home
lua-l archive

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


Question,

Light userdata is simply a pointer to some internal C/C++ (native) data, and
that data could be inside another structure, right?

Light userdata has no metatable.

Ok, so how do I destroy all uses (or nil them at least) of that light
userdata in lua when the C/C++ class/object its pointing to is destroyed?

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com