Article View: comp.lang.fortran
Article #4542Re: Dynamic Memory Allocation in FORTRAN, Question
From: J. Giles
Date: Mon, 04 Jan 1993 19:59
Date: Mon, 04 Jan 1993 19:59
40 lines
2352 bytes
2352 bytes
To answer the original question, standard Fortran 90 allows dynamic allocation through two mechanisms (one of which is the very well thought out ALLOCATABLE attribute, and the other is a very poorly thought out pointer facility). The Fortran 77 standard does not allow dynamic allocation. The LWG Fortran specification included a pointer facility (which was both simpler and better than the Fortran 90 version) which has been adopted by many vendors as an extension to Fortran 77 - most notably (from my point of view) both Cray and Sun use the LWG pointer mechanism. Note: the LWG Fortran specification was written by the DOE Language Working Group (LWG) in final form in 1982. I has many features in it which are more desirable than the Fortran 90 counterparts. In article <ljdc3hINNqhc@exodus.Eng.Sun.COM>, corbett@lupa.Eng.Sun.COM (Robert Corbett) writes: |> [...] |> A few points to observe are |> |> (1) FORTRAN 66, FORTRAN 77, and Fortran 90 are all informal |> names. The official names of the languages are either |> FORTRAN or Fortran. FORTRAN 77 is the designation recommended by the standard document itself (ANSI X3.9-1978, Forward): It is suggested that the designation FORTRAN 77 be used to distinguish this standard from previous FORTRAN standards and any possible future revisions. Similarly, "Fortran 90" is actually the *title* of the ISO version of the new standard. Whether these designations are *official* or merely *officially informal*, they are clearly the appropriate names to use. As far as I can tell, the Fortran 90 document uses these terms throughout. (It solves the question of whether Fortran 77 is upper- or lower-case by using small caps for all letters after the initial `F'.) -- J. Giles
Technical Details
Message-ID:
<1993Jan4.195942.9993@newshost.lanl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlgReferences:
<BzL8tz.H5u@news.cso.uiuc.edu> <1992Dec21.172931.15093@netcom.com> <BzMK05.HJ2@news.cso.uiuc.edu> <ljdc3hINNqhc@exodus.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.fortran Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (J. Giles) Subject: Re: Dynamic Memory Allocation in FORTRAN, Question Message-ID: <1993Jan4.195942.9993@newshost.lanl.gov> Sender: news@newshost.lanl.gov Organization: Los Alamos National Laboratory References: <BzL8tz.H5u@news.cso.uiuc.edu> <1992Dec21.172931.15093@netcom.com> <BzMK05.HJ2@news.cso.uiuc.edu> <ljdc3hINNqhc@exodus.Eng.Sun.COM> Date: Mon, 4 Jan 1993 19:59:42 GMT Lines: 40