[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: fine-grained lua_pcall() error processing
- From: petah <lua@...>
- Date: Wed, 13 Mar 2013 04:38:08 +0100
>> Too bad Lua doesn't use its own error() model to throw an error object/table before flattening it to a string.
>
>You can throw any Lua value with lua_error() or error(), but I guess
>you mean that internally the Lua core could thrown something else.
Exactly.
Lua core errors are potentially most lethal and though recovering from them is much more difficult, deterministic error handling would be a huge benefit.
-- p