Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.std.c Subject: Re: More Re: Function Argument Evaluation argument Message-ID: <18286@crdgw1.crd.ge.com> Date: 5 Apr 91 19:44:34 GMT References: <15607@smoke.brl.mil> <18272@crdgw1.crd.ge.com> <1991Apr5.182945.15789@cs.ucla.edu> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 24 In article <1991Apr5.182945.15789@cs.ucla.edu>, jon@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@crd.ge.com