Re: Table cache
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Table cache
 
- From: steve donovan <steve.j.donovan@...>
 
- Date: 2009年7月28日 09:10:35 +0200
 
On Mon, Jul 27, 2009 at 8:35 PM, Brian Weed<brianw@imaginengine.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 .
steve d.