lua-users home
lua-l archive

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


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.