lua-users home
lua-l archive

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


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.