lua-users home
lua-l archive

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


Sergey:

On Tue, Jun 25, 2019 at 6:25 PM Sergey Kovalev <kovserg33@gmail.com> wrote:
> __unreference should call immediately when reference count to zero,
> unliket __gc it is called latter then there is no way to stand more or
> when explicitly call collectgarbage()

Lua does not work by reference count.

OTOH, <toclose> is really handy to implement your own ref-count
schemes, I'm planning to use it for that if I ever switchto 5.4.

Francisco Olarte.