lua-users home
lua-l archive

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


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