lua-users home
lua-l archive

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

On 22 November 2011 23:42, Tony Finch <> wrote:
> Daurnimator <> wrote:
>>  - The standard lua error system is no longer needed: adding something
>> like this to the standard distribution may really simplify thing: “A
>> designer knows that he has achieved perfection not when there is
>> nothing left to add, but when there is nothing left to take away”
> 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.
> Tony.

That already happens.
and follow it to:
and end up at: