__gc is ignored for tables, isn't it?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: __gc is ignored for tables, isn't it?
- From: Sam Roberts <sroberts@...>
- Date: Wed, 7 Mar 2007 12:12:29 -0800
My experiments and reading of the ref manual indicate this, but I want
to confirm. LuaObjectiveC seems to assume __gc will be called when
putinto a table's metadata.
Also, for the purposes of garbage collection in weak tables, these are
"values" and will never be gced:
number
string
boolean
and these are "objects" and will be removed from weak tables when
no strong references remain:
function
userdata (light and full)
thread
table
and nil can't be a key or value in tables.
Do I have this right?
Sam