[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] patch-lua-5.1.4-3
- From: Tony Finch <dot@...>
- Date: Fri, 18 Mar 2011 15:02:03 +0000
Jerome Vuarand <jerome.vuarand@gmail.com> wrote:
>
> Unless your errors have to cross Lua-C boundaries, you can implement
> such an exception filtering scheme with coroutines, by calling yield
> (that you can rename) instead of error. In addition to blocking or
> forwarding exceptions you could even recover from them (by resuming
> the throw).
Sweet!
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Tyne, Dogger: West or southwest 3 or 4, increasing 5 for a time. Smooth or
slight, occasionally moderate in Dogger. Fair. Good.