> Interesting - so, is recovery possible (longjmp/throwing an exception > to escape)? Yes, you can longjmp to your own recovery point. However, it's not recommended to use a panic function to handle errors in Lua. For that, use lua_pcall.