[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (rc2) now available
- From: Tony Finch <dot@...>
- Date: Mon, 28 Nov 2011 17:38:30 +0000
Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>
> 277c277
> < exit(status);
> ---
> > return (exit(status), 0);
That's an error because exit() doesn't return a value :-)
I think in this case the compiler is wrong to produce the warning. Good
implementations have an annotation on exit() to say it never returns.
This is not a bug in Lua.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Fair Isle, Faeroes, South-east Iceland: Southerly or southwesterly, becoming
cyclonic at times in Fair Isle and Southeast Iceland, 6 to gale 8,
occasionally severe gale 9, decreasing 4 or 5 at times. High or very high.
Rain or showers. Good, occasionally poor.