lua-users home
lua-l archive

Re: Can userdate have references to lua objects?

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


> We have a memory leak, even though we're using a garbage collector and
> this was precisely the sort of problem that garbage collectors were
> intended to solve: dealing with circular references.
You may not like how Lua works in that case, but that does not make it
a memory leak. As long as both objects are reacheable from the program
(root set), "fail" to collect them cannot be a leak.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /