lua-users home
lua-l archive

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


----- Original Message -----
> Does this free up everything properly?
>
> a_table =
> {
>   a = 0,
>   b = 1,
>   c = 2
> }
> a_table = nil

Yeps.. Everything will be garbage collected with there are no more reference
to a value, in this case a,b,c are not "real" values like a_table but index
values. So when a_table is gone there are no more references to any of the
values.

/Erik