[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: An interesting new ways to do errors
- From: Tony Finch <dot@...>
- Date: Tue, 22 Nov 2011 14:38:28 +0000
Daurnimator <quae@daurnimator.com> wrote:
> On 22 November 2011 23:42, Tony Finch <dot@dotat.at> wrote:
> >
> > The key thing about Lua's error handling is it maps exactly on to setjmp()
> > and longjmp(). So your scheme would require setjmp to be called in
> > resume(), and the coroutine state to be saved in a longjmp-proof
> > way whenever a C function is called.
>
> That already happens.
Er, yes, I suppose it would have to :-)
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Trafalgar: Northerly, becoming cyclonic in southeast Trafalgar, 6 to gale 8,
occasionally severe gale 9. Very rough or high. Thundery rain then showers.
Good, occasionally poor.