lua-users home
lua-l archive

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

> [...] AFAIK, VM errors are flattened to a string via luaL_error/luaG_runerror before reaching a user-overridable error callback.

Both luaL_error/luaG_runerror receive only strings, so they do not
need to flatten anything. But the real error primitive is lua_error
and, internally, luaG_errormsg; both accept any object as the
error "message" and do not change that object in any way.

-- Roberto