Path: utzoo!attcan!uunet!husc6!cmcl2!lanl!jlg From: jlg@lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: i++, i+=1, i=i+1 Message-ID: <3701@lanl.gov> Date: 16 Sep 88 21:06:46 GMT References: <3979@h.cc.purdue.edu> Organization: Los Alamos National Laboratory Lines: 23 From article <3979@h.cc.purdue.edu>, by ags@h.cc.purdue.edu (Dave Seaman): > May I suggest that you read the standard before making such statements? > At least one variety of side effect is explicitly permitted by the > standard. I quote the last paragraph of Section 15.5.1, "Function > Subprogram and FUNCTION Statement": > > An external function in a function subprogram may define one or > more of its dummy arguments to return values in addition to the > value of the function. May I suggest that you read the standard before making such statements? I had forgotten the above (that is, in fact, the only side effect allowed explicitly). But you seem to have forgotten the last paragraph of Section 6.6.2, "Order of Evaluation of Functions": In a statement that contains more than one function reference, the value provided by each function reference must be independent of the order chosen by the processor for evaluation of the function references. J. Giles Los Alamos