lua-users home
lua-l archive

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

> I agree that there's not much that Lua can do. However it 
> could have a function pointer to a C error handler, which is 
> just enough customization for the program that I'm working 
> on. This way, the host application has an opportunity to exit 
> in its own way. Also, it may be a context in which Lua's 

For what it's worth, the LuaState distribution does exactly this.  For
some applications, calling exit() is a seriously BAD thing.  To be able
to override the behavior, such as throwing an exception for the
application to pick up, is a very important thing.