negative addresses

n paul at unisoft.UUCP
Tue May 24 01:02:49 AEST 1988


In article <206 at proxftl.UUCP> bill at 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)



More information about the Comp.lang.c mailing list