lua-users home
lua-l archive

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

>Weak keyed tables are usually for garbage collection and such, so if a key
>is no longer referenced  the key and value can be deleted from the table and
>the key recycled, the value/memory can also be recycled, unless theres a
>strong reference too it.
>but lua's use may be different.

Weak tables in Lua will allow weak keys, weak values, or both.