lua-users home
lua-l archive

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


On Mon, Jun 3, 2019 at 3:29 PM Roberto Ierusalimschy wrote:

> An object reference may be abandoned as soon as the program gets to the
> point where it will no longer need the object for its normal execution
> (i.e. ignoring the effects of weak references and finalizers).

+1.



This changes significantly the concept of "anchoring".
This also means that Lua assumes that your finalizers/closers don't affect the logic of the rest of your program.
So, this is a big semantics-breaker, and this should be explained in the manual.