lua-users home
lua-l archive

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


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.