lua-users home
lua-l archive

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

>From  Tue Jul  4 10:28:21 2000
>From: "Nick Trout" <>
>Just to clarify. Is it only the table which are collected? What about numbers,
>functions and user objects? Are these not collected until a lua_close()?

All Lua objects that are garbage are collected.
Lua uses mark-and-sweep GC, not reference counts.
Everything that is no longer referenced is collected, even cycles of garbage.