lua-users home
lua-l archive

Re: exit() from Lua

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


>From lua-l@tecgraf.puc-rio.br Wed Jun 28 06:04:06 2000
>From: "Maciej Maczynski" <macmac@xdsnet.de>
>lua_error function calls C exit function. Can I avoid it without modyfing
>code?
No.
If an error occurs during the execution of a chunk, then the execution is
interrupted and exit() is not called.
If lua_error is called by the host program directly or by the API when something
goes wrong, then it does exit().
What else could Lua do in this case?
--lhf

AltStyle によって変換されたページ (->オリジナル) /