Subject: Re: lib/1764: __ivaliduser() contains call to abort()
To: None <netbsd-bugs@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 11/16/1995 11:43:02
>Date: Thu, 16 Nov 1995 15:32:21 +0100
>From: Wolfgang Solfrank <ws@tools.de>
>
>> I don't have a C standard handy, but it's been suggested to me in
>> private mail that a compiler could choose to use -1 as the value of an
>> equality boolean value.
>
>I don't have this standard either, but I very much doubt that the standard
>allows this. This would be totally insane. I would immediately stop using any
>compiler that would do this, ANSI C or not.

Agreed.  K&R 2nd ed., pp. 206-7:

"The operators < (less>, > (greater), <= (less or equal) and >=
(greater or equal) all yield 0 if the specifed relation is false and 1
if it is true.
...
The == (equal to) and the != (not equal to) operators are analogous to
the relational operators except for their lower precedence."

-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));