🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2588

Re: Function Argument Evaluation

#2588
From: Christopher R Volpe
Date: Mon, 25 Mar 1991 21:22
26 lines
1603 bytes
In article <15552@smoke.brl.mil>, gwyn@smoke.brl.mil (Doug Gwyn) writes:
|>In article <17809@crdgw1.crd.ge.com> volpe@camelback.crd.ge.com
(Christopher R Volpe) writes:
|>>Ok, but I believe that is true only because the behavior is undefined
|>
|>No; the order of evaluation in this example is explicitly UNSPECIFIED,

Oh, by the way, Doug, I didn't say the order of evaluation was undefined.
I said the behavior of the program itself was undefined (as Colin
pointed out). And I'm not saying it's because of any unspecified order
of evaluation. It's because the object referenced by p has its value 
modified more than once between sequence points. (Is this right?)

Is it true that the behavior of the program is undefined (for the above
reason)? If so, then of course any output is a possible output. If not,
then could you explain why the value of p at any given time during
execution of that program has any significance whatsoever?

Thanks for your patience and help in clarifying this.

-Chris        
==================
Chris Volpe
G.E. Corporate R&D
volpecr@crd.ge.com
Technical Details
Message-ID: <17882@crdgw1.crd.ge.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!crdgw1!camelback!volpe
References: <17750@crdgw1.crd.ge.com> <15538@smoke.brl.mil> <17809@crdgw1.crd.ge.com> <15552@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!crdgw1!camelback!volpe
From: volpe@camelback.crd.ge.com (Christopher R Volpe)
Newsgroups: comp.std.c
Subject: Re: Function Argument Evaluation
Message-ID: <17882@crdgw1.crd.ge.com>
Date: 25 Mar 91 21:22:14 GMT
References: <17750@crdgw1.crd.ge.com> <15538@smoke.brl.mil> <17809@crdgw1.crd.ge.com> <15552@smoke.brl.mil>
Sender: news@crdgw1.crd.ge.com
Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe)
Lines: 26