Xref: utzoo comp.arch:8331 comp.lang.c:16386 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!abvax!ejp From: ejp@faron.icd.abnet.COM (Ed Prochak) Newsgroups: comp.arch,comp.lang.c Subject: Re: true and false in C (was Fun C typos (was *p++ = *q++)) Message-ID: Date: 20 Feb 89 17:11:41 GMT References: <777@atanasoff.cs.iastate.edu> <223@nbires.nbi.com> <16017@mimsy.UUCP> Sender: news@abvax.UUCP Distribution: usa Organization: Allen-Bradley Lines: 16 In-reply-to: chris@mimsy.UUCP's message of 18 Feb 89 05:33:20 GMT Chris, Let me publicly admit that I was wrong. Comparison operators are required to generate TRUE = 1 in C. The fact that logical operators such as ! (not) accept nonzero values as TRUE was irrelevant. (The freedom to use TRUE = nonzero is a nice feature, but is not allowed for the comparison operators. so compiler writers should be aware of this.) TTFN Ed -- Edward J. Prochak (216)646-4663 I think. {cwjcc,pyramid,decvax,uunet}!abvax!ejp I think I am. Allen-Bradley Industrial Computer Div. Therefore, I AM! Highland Heights,OH 44143 I think? --- Moody Blues