lua-users home
lua-l archive

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


> What is scaring  me is
> Why the local objects are not collected ? where are they stored ?
> I am asking to satisfy my curiosity, and to learn a bit more.

The local objects are stored on the heap. They are not garbage
collected (if they are not garbage collected) because they
end up being upvalues in other objects which are visible,
or because they are still on the stack.