At 11:17 PM 8/30/2004 +0100, Joe Orton wrote:
On Mon, Aug 30, 2004 at 02:20:42PM -0700, Andi Gutmans wrote:
> I know it's undefined but why is defining it to LONG_MAX/LONG_MIN any
> better? It's not the kind of behavior which I think we should "define".

C code which has undefined behaviour may segfault or suffer some other
run-time exception; the compiler may arrange for it to print "I'm a
fluffy pink rabbit" to stderr as a side-effect.

Joe,

I'm pretty sure if you read the C standard it'll say something about the "value" being undefined, not about the behavior of the whole program being undefined.

Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to