Xref: utzoo comp.arch:4950 comp.lang.c:10339 Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!unisoft!paul From: paul@unisoft.UUCP (n) Newsgroups: comp.arch,comp.lang.c Subject: Re: negative addresses Message-ID: <959@unisoft.UUCP> Date: 23 May 88 15:02:49 GMT References: <2393@uvacs.CS.VIRGINIA.EDU> <21541@amdcad.AMD.COM> <10001@tekecs.TEK.COM> <206@proxftl.UUCP> Reply-To: paul@unisoft.UUCP (Paul Campbell) Lines: 33 In article <206@proxftl.UUCP> bill@proxftl.UUCP (T. William Wells) writes: >> >> if (tbuf->c_ptr == NULL) > >ANSI says that the two are equivalent. Actually, ANSI says >(about `if'): "... the first substatement is executed if the >expression compares unequal to 0. ...". This means that you can >think of the statement `if (x)' as `if (x != 0)'. > Correct me if I'm wrong ..... if (x) ... really means if (x != 0) .... which really means if ((x != 0) != 0) ... which really means if (((x != 0) != 0) != 0) ... which really means if ((((x != 0) != 0) != 0) != 0) ... etc etc hence the need for all these new super optimising compilers ..... Paul -- Paul Campbell, UniSoft Corp. 6121 Hollis, Emeryville, Ca E-mail: ..!{ucbvax,hoptoad}!unisoft!paul Nothing here represents the opinions of UniSoft or its employees (except me) "Nuclear war doesn't prove who's Right, just who's Left" (ABC news 10/13/87)