lua-users home
lua-l archive

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


>Do local variables get garbage collected when the block that contains them
>is over?

Just to be picky: the *values* of the local variables for which there are no
other references are collected in the next cycle after the block ends.

>Do locals get garbage collected first during the garbage collection phase?

No order is guaranteed.

>Is there a way to force garbage collection in general?

collectgarbage()
--lhf