More Re: Function Argument Evaluation argument
Christopher R Volpe
volpe at camelback.crd.ge.com
Sat Apr 6 05:44:34 AEST 1991
In article <1991Apr5.182945.15789 at cs.ucla.edu>, jon at maui.cs.ucla.edu
(Jonathan Gingerich) writes:
|>Where are the sequence points on the comma operator?
After the evaluation of the left operand.
|> I would guess there
|>is only one between the first and second expression in which case the
|>evaluation order 1 - 1 - (sequence point) - (sequence point) - v - v++
|>would make the result undefined.
That order of evaluation would seem to be inconsistent with the Semantics
part of 3.3.17 (Comma Operator). "The left operand of a comma operator
is evaluated as a void expression; there is a sequence point after its
evaluation. THEN THE RIGHT OPERAND IS EVALUATED [emphasis mine]; the
result has its type and value."
|>Jon.
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com
More information about the Comp.std.c
mailing list