Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!lanl!jlg
From: jlg@lanl.gov (Jim Giles)
Newsgroups: comp.lang.fortran
Subject: Re: i++, i+=1, i=i+1
Message-ID: <3742@lanl.gov>
Date: 19 Sep 88 18:59:10 GMT
References: <1267@scolex>
Organization: Los Alamos National Laboratory
Lines: 13

From article <1267@scolex>, by seanf@sco.COM (Sean Fagan):
> [functions not allowed to return different values on the same input]
> [also not allowed to have side-effects]
> 
> Wrong.  They can.  Also, with regards to side-effects, a FORTRAN function

Please read _all_ of section 6.6 of the Fortran 77 manual.  There are numerous
constraints on the side effects of functions contained therein.  Admittedly,
these are the _only_ constraints on side effects of Fortran functions,
but they cover the case under present consideration _completely_.

J. Giles
Los Alamos