lua-users home
lua-l archive

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


Nicolas Noble wrote:

Well, now "mygc" should be a lua_CFunction, and yet it is still not
called...

The manual says: "Using the C API, you can set garbage-collector 
metamethods for *userdata*". So unfortunately, __gc metamethods are 
called only for userdata, and not for tables...
--
Julien Cugnière