Article View: comp.std.c
Article #2680Re: More Re: Function Argument Evaluation argument
From: Christopher R Volpe
Date: Fri, 05 Apr 1991 19:44
Date: Fri, 05 Apr 1991 19:44
24 lines
1375 bytes
1375 bytes
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
Technical Details
Message-ID:
<18286@crdgw1.crd.ge.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!camelback!volpeReferences:
<15607@smoke.brl.mil> <PDS.91Apr2203927@lemming.webo.dg.com> <18272@crdgw1.crd.ge.com> <1991Apr5.182945.15789@cs.ucla.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <PDS.91Apr2203927@lemming.webo.dg.com> <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