lua-users home
lua-l archive

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


> I notice that if I explicitly call collectgarbage() then the behavior
> matches what I expect based on the reference manual:
> 
> __gc table: 0x635950
> found in weak table: nil
> 
> So maybe this is just an issue with the final collection of all remaining
> objects at the program's end.

Yes. When a program ends, it does not perform a garbage collection.
Instead, it first calls the finalizers of all live objects and then
releases all objects.

-- Roberto