home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!gatech!hubcap!jtbell
- From: jtbell@hubcap.clemson.edu (Jon Bell)
- Subject: Re: programming style question
- Message-ID: <1992Aug17.211504.16698@hubcap.clemson.edu>
- Organization: Presbyterian College, Clinton SC
- References: <KHB.92Aug16161904@chiba.Eng.Sun.COM> <1992Aug17.170254.17530@ee.ubc.ca> <1992Aug17.174516.18372@ee.ubc.ca>
- Date: Mon, 17 Aug 1992 21:15:04 GMT
- Lines: 24
-
- In article <1992Aug17.174516.18372@ee.ubc.ca> davem@ee.ubc.ca (david michelson) writes:
- >This quote from "Numerical Recipes: The Art
- >of Scientific Computing" caught my eye:
- >
- >"The Fortran 77 standard provides that variables internal to a subroutine
- >are *not* guaranteed to be saved between successive calls to that
- >subroutine unless the variable is declared global in a SAVE statement.
- >(This allows stack-oriented implementations.)
- >
- >If this part of the standard were "enforced", a large fraction of all
- >programs written by all living programmers would immediately cease to
- >function. Only a few compilers *dare* to implement this part of the
- >standard, therefore."
-
- Well, I regularly use two Fortran 77 compilers: Language Systems
- Fortran for the Macintosh and Salford FTN77 for Prime 50 series.
- Both of them implement that part of the standard by default. They
- do both provide a compiler option which has the effect of SAVEing
- all local variables in subroutines.
-
- >Dave Michelson "davem@ee.ubc.ca"
-
- Jon Bell / Dept. of Physics & Computer Science / Presbyterian College
- Clinton SC USA / email: jtbell@presby.edu
-