RE: customizable Lua "panic" behavior
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: RE: customizable Lua "panic" behavior
- From: "Joshua Jensen" <jjensen@...>
- Date: 2001年11月19日 11:03:23 -0700
> 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.
Josh