[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Linehook problems
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 3 Nov 2000 10:11:01 -0200 (EDT)
>calling error() in the linehook is not aborting anything.
The manual says so:
A hook cannot call lua_error. It must return to Lua through a regular
return. (There is no problem if the error is inside a chunk or a Lua
function called by the hook, because those errors are protected; the
control returns to the hook anyway.)
>Are there other solutions?
Perhaps setting a global flag and testing it in the script?
--lhf