lua-users home
lua-l archive

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


On Fri, 14 Jun 2019 11:27:27 +0000
Paul Ducklin <pducklin@outlook.com> wrote:

> Here’s something I don’t understand.
> 
> Why do we need the ugly, weird-looking and controversial <toclose> notation at all? (Also, “toclose” isn’t quite the right word anyway, but that is another matter.)

I could be wrong, but I believe it's related to the new generational gc. If it doesn't get collected early, it could be a while before it does get collected, so now you'll have a way to get it taken care of when the variable goes out of scope and would then no longer be needed.

That's my limited understanding