unary +

friesen at psivax.UUCP friesen at psivax.UUCP
Tue Apr 22 07:41:24 AEST 1986


In article <2591 at utcsri.UUCP> randy at utcsri.UUCP (Randall S. Becker) writes:
>
>Forgive me for asking, but what is meant by a + +(b + c)? 
>	Common interpretations:
>		a + abs(b + c)		(not likely)
>		a + (b + c)		(likely, in my opinion)
>
	The answer is *neither*. In the proposed 'C' standard it means

	register tmp;

	(tmp = b + c, a + tmp)

except that tmp never actually exists. This is what all the fuss is
about. Some people think this is a poor idea. The problem this is
intended to solve is that the 'C' language permits a + (b + c) to be
evaluated in *any* order, even [a + b] + c.
-- 

				Sarima (Stanley Friesen)

UUCP: {ttidca|ihnp4|sdcrdcf|quad1|nrcvax|bellcore|logico}!psivax!friesen
ARPA: ttidca!psivax!friesen at rand-unix.arpa



More information about the Comp.lang.c mailing list