Re: lua.c and OS error codes
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua.c and OS error codes
- From: Tony Finch <dot@...>
- Date: 2007年6月14日 10:41:53 +0100
On 2007年6月14日, Thomas Lauer wrote:
>
> I thought of that, but for the time being decided against. Main reason
> was that external tools can't easily distinguish between a non-zero code
> that means "lua has a problem with my script" (i.e. lua error status<>0)
> vs "my script has a problem with whatever" (i.e. my error code<>0). And
> whatever I do, I can construct cases where doing the opposite would be
> better.
Yes, this is a problem. However I was thinking it would be preferable to
make the patch extend the current behaviour (add more ways of returning
non-zero) and avoid incompatibilities (like returning zero after a
compilation error).
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
SOUTH FITZROY: SOUTHWEST VEERING WEST 5 TO 7, PERHAPS GALE 8 LATER. MODERATE
OR ROUGH, OCCASIONALLY VERY ROUGH LATER. RAIN OR SHOWERS. MODERATE OR GOOD.