Path: utzoo!attcan!uunet!ginosko!brutus.cs.uiuc.edu!apple!well!nagle From: nagle@well.UUCP (John Nagle) Newsgroups: comp.lang.c++ Subject: Re: Time to standardize "true" and "false" Keywords: true false C C++ Message-ID: <13832@well.UUCP> Date: 27 Sep 89 16:16:52 GMT References: <13730@well.UUCP> <9464@attctc.Dallas.TX.US> <2142@dataio.Data-IO.COM> <6897@pixar.UUCP> Reply-To: nagle@well.UUCP (John Nagle) Distribution: comp Lines: 11 In article <6897@pixar.UUCP> fishkin@pixar.UUCP (Ken Fishkin) writes: > I disagree. I have worked in environments where !0 was -1. That's an incorrect implementation in both C and C++. K&R reads (sec. 4.6): "The unary negation operator converts a non-zero or true operand into 0 and a zero or false operand into 1." Strostrup reads (sec 7.2): "The result of the logical negation operator ! is 1 if the valu of its operand is 0, 0 if the value of its operand is non-zero". John Nagle