Order of evaluation and optimizing code
Doug Gwyn
gwyn at brl-smoke.ARPA
Sun Nov 9 18:27:34 AEST 1986
In article <167 at houligan.UUCP> Dave Cornutt writes:
-... If the compiler does not
-realize the significance of the unary plus and doesn't maintain the specified
-order of evaluation, is the compiled code going to work? ...
-... it might have been better to invent a
-new keyword or symbol to designate a sequence point, so that if the code
-is ported to a compiler that doesn't have it, the problem will become
-apparent immediately.
How about the symbol + which isn't a valid unary operator in K&R C?
In other words, unary + DOES meet your concerns.
More information about the Comp.lang.c
mailing list