[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Next Version of Lua?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 12 Jun 2009 12:51:33 +0200
On Fri, Jun 12, 2009 at 12:30 PM, Niklas Frykholm<niklas@frykholm.se> wrote:
> destroy. But lua userdata must live on the heap, so in Lua we are
> forced into the slow behavior.
So some kind of guaranteed finalization would do the job, if one could
indicate that a particular object had to be collected when out of
scope. In fact, just having the ability to force __gc for such objects
would allow for a custom scheme, not so?
Whether this would impact on general performance, I don't know: such
objects would have to be specially marked for 'impatient disposal'.
RAII is the obvious goal for such a feature.
steve d.
- References:
- Next Version of Lua?, Olivier Hamel
- Re: Next Version of Lua?, Olivier Hamel
- Re: Next Version of Lua?, Niklas Frykholm
- Re: Next Version of Lua?, Duncan Cross
- Re: Next Version of Lua?, Niklas Frykholm
- Re: Next Version of Lua?, Asko Kauppi
- Re: Next Version of Lua?, Niklas Frykholm
- Re: Next Version of Lua?, Asko Kauppi
- Re: Next Version of Lua?, steve donovan
- Re: Next Version of Lua?, Niklas Frykholm