Function Argument Evaluation

Christopher R Volpe volpe at camelback.crd.ge.com
Tue Mar 26 23:20:54 AEST 1991


In article <3216 at charon.cwi.nl>, dik at cwi.nl (Dik T. Winter) writes:
|>You both fail to see that the value of
|>	(lvalue = expression)
|>is *not* the value of 'expression' before assignment but the value of
'lvalue'
|>after assignment.

Ah. Right. Thank you very much, Dik. Now why couldn't someone have pointed
this out before, since that is in fact the root of this confusion.

However, isn't this a moot point? The only time the value of 'expression'
before assignment may NOT be equal to the value of 'lvalue' after 
assignment is in the case that 'lvalue' has its contents modified more
than once between sequence points, in which case all bets are off. Is this
last statement correct? If not, could someone provide a counter-example? 
(Is the example currently under discussion a counter example?)             
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.std.c mailing list