Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!sun-barr!newstop!sun!amdahl!key!sjc From: sjc@key.COM (Steve Correll) Newsgroups: comp.lang.fortran Subject: Fortran 88 statement function query Message-ID: <1214@key.COM> Date: 11 Nov 89 22:57:18 GMT Organization: Key Computer Labs, Fremont, CA Lines: 16 Fortran 77 section 15.4.3 prohibits a statement function from altering its dummy arguments by passing them as actual arguments to an external function invocation. Fortran 88 version 112 section 12.5.4 omits the prohibition. It does use the word "value" in a fashion that might be intended to mean the same thing, except that "call by value" is not a concept defined in these standards, and even so, "call by value" is not the same as being prohibited from altering the argument. Without the prohibition, legal Fortran 77 programs would still conform, but certain compiler optimizations would no longer be legal. Have I overlooked the prohibition somewhere in Fortran 88? If not, can somebody from X3J3 tell me whether 12.5.4 is meant to sustain the prohibition, or whether it was deliberately omitted? Thanks. -- ...{sun,pyramid}!pacbell!key!sjc Steve Correll