lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
I expect the first few are fine, it's really just ERRERR that's the problem.


LUA_ERRERR means an error during error handling.

Ah, thanks. How should this be handled? What happens in the case of such a thing? I am writing to ada 95, and am mapping erros to exceptions. If this occurs, will Lua panic or will it be returned?


Bottom line: use top-level protected calls and don't worry about the rest.
Nested proteced calls are only needed for specific tasks, such as loading
and running chunks.

Thanks.  I understand it a bit better now.

What do the lib loading functions do on error? They return ints, is it simply success or failure or do they return specific error codes?


Chris