[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: An interesting new ways to do errors
- From: Tony Finch <dot@...>
- Date: Tue, 22 Nov 2011 14:38:28 +0000
Daurnimator <email@example.com> wrote:
> On 22 November 2011 23:42, Tony Finch <firstname.lastname@example.org> 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 :-)
f.anthony.n.finch <email@example.com> 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.