🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2606

Re: Function Argument Evaluation

#2606
From: Christopher R Volpe
Date: Wed, 27 Mar 1991 13:10
18 lines
1449 bytes
Thanks to all who pointed out to me that the value of the
left operand after assignment (meaning after the next sequence point)
may be different from the value of the right operand if the type
of the left operand is different from the type of the right operand.
For example, the value of "(intvar = 2.3)" is "2", not "2.3".
This, however, is not relevant to the question under discussion. 

The only reason the output of the program in question can be
"200 200" is because the BEHAVIOR of the PROGRAM (right Doug?) is
undefined because the program violates the "shall" rule in paragraph
2 of 3.3, which is not within a constraint. It is pointless to present
a sequence of evaluations of subexpressions in some order to "prove"
that the program can print out "200 200". It can print out anything it
pleases. 
==================
Chris Volpe
G.E. Corporate R&D
volpecr@crd.ge.com
Technical Details
Message-ID: <17936@crdgw1.crd.ge.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!camelback!volpe
References: <15565@smoke.brl.mil> <1991Mar25.174542.24419@cs.ucla.edu> <3461@inews.intel.com> <1991Mar26.181821.22912@cs.ucla.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!camelback!volpe
From: volpe@camelback.crd.ge.com (Christopher R Volpe)
Newsgroups: comp.std.c
Subject: Re: Function Argument Evaluation
Message-ID: <17936@crdgw1.crd.ge.com>
Date: 27 Mar 91 13:10:51 GMT
References: <15565@smoke.brl.mil> <1991Mar25.174542.24419@cs.ucla.edu> <3461@inews.intel.com> <1991Mar26.181821.22912@cs.ucla.edu>
Sender: news@crdgw1.crd.ge.com
Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe)
Lines: 18