|
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