[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Table cache
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 28 Jul 2009 09:10:35 +0200
On Mon, Jul 27, 2009 at 8:35 PM, Brian Weed<email@example.com> wrote:
> collected). It seems that I can’t use __gc to do this, since that only gets
> called for userdata (not tables), and may be too late.
There is the undocumented newproxy() hack; this creates a userdata
object, and you can set __gc on its MT.
But alas, the GC has no idea about _your_ priorities!
There was recently a discussion about guaranteed finalization .