[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: C API question
- From: "David Burgess" <dburgess@...>
- Date: Sat, 22 Sep 2007 13:37:29 +1000
If I create a metatable (lua_createtable()) and use lua_setmetable()
to associate the metatable with a table and do not put the metatable
in the registry with luaL_newmetatble(), am I right in thinking that
because the metatable is is referenced by the table that the metatable
will not be collected?
And when I delete the table, the metatable will be collected because
it is no longer referenced?
db