short circuit evaluation

Doug Gwyn gwyn at brl-smoke.ARPA
Sun Mar 15 06:53:40 AEST 1987


In article <903 at cullvax.UUCP> drw at cullvax.UUCP (Dale Worley) writes:
>The parentheses you wrote aren't explicit cues to the compiler, by
>definition.  (*Why* X3J11 did this is another question...)

But an easily answered one:
	1.  X3J11's base document was K&R Appendix A.
	2.  Existing practice.
	3.  C is not Fortran.
	4.  Many parentheses are introduced during macro
		expansion, and it is undesirable to prohibit
		optimization of these.
	5.  An explicit mechanism (unary +) was provided that
		can be used to obtain the desired functionality.



More information about the Comp.lang.c mailing list