lua-users home
lua-l archive

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

Daurnimator <> wrote:
> On 22 November 2011 23:42, Tony Finch <> 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  <>
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.