lua-users home
lua-l archive

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


>2) You say: "Lua tracks references and automagically garbage collects
>userdata objects".  As I understand it, it does not collect any of the
>objects, just the lua variables holding the userdata (pointer).  You have to
>tie in to the GC system and clean the objects up yourself.

Theres also lua_newuserdata which allocates a buffer and adds the pointer to
the list of Lua objects to be checked for GC.
--lhf