Path: utzoo!utgpu!watmath!clyde!att!rutgers!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!elroy!peregrine!ccicpg!felix!arcturus!evil
From: evil@arcturus.UUCP (Wade Guthrie)
Newsgroups: comp.lang.c
Subject: Re: side effects in argument lists
Summary: how about binary operators
Message-ID: <2916@arcturus>
Date: 2 Dec 88 17:31:19 GMT
References: <1077@mina.liu.se> <14758@mimsy.UUCP>
Organization: Rockwell International, Anaheim, CA
Lines: 22

In article <14758@mimsy.UUCP>, chris@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???)