Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.misc Subject: Re: NOT Educating FORTRAN programmers to use C Message-ID: <15734@haddock.ima.isc.com> Date: 23 Jan 90 05:51:36 GMT References: <15706@haddock.ima.isc.com> <14204@lambda.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 12 In article <14204@lambda.UUCP> jlg@lambda.UUCP (Jim Giles) writes: >As for expression ordering being "Fixed in ANSI C", I'd like to know _HOW_. >I _HOPE_ they didn't settle on [the unary plus hack]. Fortunately, they did not. It was decided that honoring parentheses would be the best way. Although there were originally some Committee members who opposed this because it inhibits useful optimizations, I hear that they backed down when it was pointed out that most such are still covered by the as-if rule. (E.g. |(i+1)-1| for integral |i| can still be reduced, since it gets the same answer under all conditions under which the original is legal.) Karl W. Z. Heuer (karl@haddock.isc.com or ima!haddock!karl), The Walking Lint