side effects in argument lists

Wade Guthrie evil at arcturus.UUCP
Sat Dec 3 03:31:19 AEST 1988


In article <14758 at mimsy.UUCP>, chris at mimsy.UUCP (Chris Torek) writes:
> . . . All side effects
> are to have completed by the next `sequence point'.  The list of
> sequence points includes comma expressions, `&&', `||', and not
> least, function calls.  Obviously, statement bounardies (semicolons)
> are sequence points as well.

I believe that binary operators such as '-' are also `sequence points'.
Doesn't this cause the behavior of:

	a = b++ - b++;

to be undefined (different answers depending on right-to-left evaluation
versus left-to-right)?


Wade Guthrie
Rockwell International
Anaheim, CA

(Rockwell doesn't necessarily believe / stand by what I'm saying; how could
they when *I* don't even know what I'm talking about???)



More information about the Comp.lang.c mailing list