Path: utzoo!utgpu!water!watmath!clyde!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Autoincrement question Message-ID: <1993@haddock.ISC.COM> Date: 16 Dec 87 22:50:37 GMT References: <1507@ogcvax.UUCP> <3333@sigi.Colorado.EDU> <7593@eddie.MIT.EDU> <2610@mmintl.UUCP> <2464@killer.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 11 In article <2464@killer.UUCP> jfh@killer.UUCP (John Haugh) writes: |In article <2610@mmintl.UUCP>, franka@mmintl.UUCP (Frank Adams) writes: |> Slightly stronger: don't use the target of an assignment operator |> [including ++] elsewhere in the same expression. | |Way to strong. ... The expression "a += a++ + 5" is still very legal. Yes, but it only works because the final result happens to be independent of the order of the two side effects. "a *= a++ + 5" is ambiguous, for example. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint