[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: forcing userdata to be gc'd?
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 4 Apr 2017 10:13:46 +0200
On Mon, Apr 3, 2017 at 8:34 PM, Gé Weijers <ge@weijers.org> wrote:
> garbage collector catches up with the abandoned file. Is there a way to
> catch cases like this as well? I don't know, but it would be nice to
> consider any options before copying an existing solution from C#/Go/Scheme
> or whatever other language there is.
I've always been a fan of deterministic finalization, but it's
problematic. This comment says it all:
http://lua-users.org/lists/lua-l/2015-11/msg00270.html
Summary: can already be done in Lua.