🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9596

Re: Expression sequencing query

#9596
From: dik Dik T. Winter
Date: Fri, 17 Oct 1986 20:52
19 lines
1399 bytes


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
Technical Details
Message-ID: <273@ndmce.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cuae2!ltuxa!we53!sw013b!dj3b1!killer!ndmce!pollux!infotel!ut-ngp!ut-sally!seismo!mcvax!dik
References: <760@oakhill.UUCP> <111@titan.UUCP> <468@jc3b21.UUCP> <160@geac.UUCP> <3769@umcp-cs.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cuae2!ltuxa!we53!sw013b!dj3b1!killer!ndmce!pollux!infotel!ut-ngp!ut-sally!seismo!mcvax!dik
From: dik@mcvax.uucp@ndmce.uucp (Dik T. Winter)
Newsgroups: net.lang.c
Subject: Re: Expression sequencing query
Message-ID: <273@ndmce.uucp>
Date: Fri, 17-Oct-86 16:52:58 EDT
Article-I.D.: ndmce.273
Posted: Fri Oct 17 16:52:58 1986
Date-Received: Tue, 21-Oct-86 05:32:17 EDT
References: <760@oakhill.UUCP> <111@titan.UUCP> <468@jc3b21.UUCP> <160@geac.UUCP> <3769@umcp-cs.UUCP>
Sender: news@ndmce.uucp
Reply-To: dik@zuring.uucp (Dik T. Winter)
Distribution: net
Organization: CWI, Amsterdam
Lines: 16
Apparently-To: rnews@mcvax