[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: exit() from Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 28 Jun 2000 10:06:14 -0300 (EST)
>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