From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Tolpin Message-Id: <200401311008.i0VA89k2019303@adat.davidashen.net> Subject: Re: [9fans] remember when C compiler used to produce working code? i don't! In-Reply-To: <9b6fbf408d6aec17ec993ea03464e62a@plan9.ucalgary.ca> To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Date: Sat, 31 Jan 2004 14:08:09 +0400 Topicbox-Message-UUID: c8839b70-eacc-11e9-9e20-41e7f4b1d025 andrey mirtchovski: > > comments about the "rare" philosophy are also welcome. > > I don't know what ANSI C says the result should be, so I was hoping > someone would comment on that. > ISO C 6.5.16.2 Compound Assignment .... Semantics A compound assignment of the form E1 op= E2 differs from the simple assignment expression E1 = E1 op (E2) only in that the lvalue E1 is evaluated only once.