[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.com> 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:
Summary: can already be done in Lua.