[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Mark Hamburg <mark@...>
- Date: Wed, 18 Feb 2009 08:29:06 -0800
One answer for coroutines in the scope manager pattern is that one
needs not just on_exit and on_failure, but also the pair on_yield/
on_resume.
One could also treat coroutine death as being signaled with an
exception before the coroutine actually goes away. Or more generally a
coroutine with outstanding finalizers is itself a finalizable object
either via an exception thrown from the yield or simply by running the
finalizers.
Do upvalues get processed when a coroutine gets collected?
Mark
- References:
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, John Belmonte
- Re: state of the Lua nation on resource cleanup, David Manura
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, John Belmonte
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Fabien
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Asko Kauppi
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Asko Kauppi