[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __gc metamethod (was Re: Userdata/Table Unification)
- From: Edgar Toernig <froese@...>
- Date: Tue, 27 Jul 2004 04:43:36 +0200
Mark Hamburg wrote:
>
> Finally, one thing I have found myself wanting on occasion is a way to
> report resurrection in a __gc metamethod so that I would get another call if
> the object became unreachable again. This should just be the matter of
> setting a flag back. Unfortunately, I can't think right now of why I thought
> this might be useful.
Maybe the gc-method noticed that the userdata is still referenced by
other C structures (i.e. ref-count not zero) and has to be kept for
a while...
Ciao, ET.