Unary plus
Doug Gwyn
gwyn at smoke.brl.mil
Thu Mar 28 07:57:52 AEST 1991
In article <370 at ptcburp.ptcbu.oz.au> michi at ptcburp.ptcbu.oz.au (Michael Henning) writes:
>It basically states that the unary plus operator may be used to force
>a particular order of evaluation.
No, that was proposed in early drafts of the standard, but was dropped in
favor of requiring "honoring of parentheses" (a la Fortran) instead.
>If I want to enforce evaluation order by assigning to temporary variables, ...
Don't do that, use parentheses instead.
For finer-grained control you can use volatile, but that should not be
used merely to control subexpression evaluation order.
More information about the Comp.std.c
mailing list