Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!rutgers!lll-crg!seismo!mcvax!dik From: dik@mcvax.uucp (Dik T. Winter) Newsgroups: net.lang.c Subject: Re: Expression sequencing query Message-ID: <314@zuring.mcvax.UUCP> Date: Tue, 14-Oct-86 16:02:05 EDT Article-I.D.: zuring.314 Posted: Tue Oct 14 16:02:05 1986 Date-Received: Mon, 20-Oct-86 22:40:50 EDT References: <760@oakhill.UUCP> <111@titan.UUCP> <468@jc3b21.UUCP> <160@geac.UUCP> <3769@umcp-cs.UUCP> Reply-To: dik@zuring.uucp (Dik T. Winter) Distribution: net Organization: CWI, Amsterdam Lines: 16 Apparently-To: rnews@mcvax In article <3769@umcp-cs.UUCP> chris@umcp-cs.UUCP (Chris Torek) writes: > Even in Fortran I (where, >I believe, the language specification says that (A+B)+C is requires >doing A+B first, then result+C) I would write > > RESULT = A + B > RESULT = RESULT + C > And so should it. Once I required the expression (A - B) - C evaluated exactly that way. It didn't do so. However, after removing the parenthesis it was evaluated the way I wanted. Counterintuitive? -- dik t. winter, cwi, amsterdam, nederland UUCP: {seismo,decvax,philabs,okstate,garfield}!mcvax!dik or: dik@mcvax.uucp ARPA: dik%mcvax.uucp@seismo.css.gov