lua-users home
lua-l archive

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


On Jan 22, 2013, at 8:51 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

> But note that panic functions are not meant to be generic error handlers
> for Lua, just a last-resort safety net for the app. In particular, the
> Lua state in a panic function is not usable.

Thanks. If I understand the concepts correctly, then I can use the panic handler to avoid the host application from exiting in cases where Lua is unrecoverable (as opposed to normal errors that might occur when executing a script, such as syntax errors)?

-Noah