home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / fortran / 4906 < prev    next >
Encoding:
Text File  |  1993-01-04  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  3. From: jlg@cochiti.lanl.gov (J. Giles)
  4. Subject: Re: Dynamic Memory Allocation in FORTRAN, Question
  5. Message-ID: <1993Jan4.195942.9993@newshost.lanl.gov>
  6. Sender: news@newshost.lanl.gov
  7. Organization: Los Alamos National Laboratory
  8. References: <BzL8tz.H5u@news.cso.uiuc.edu> <1992Dec21.172931.15093@netcom.com> <BzMK05.HJ2@news.cso.uiuc.edu> <ljdc3hINNqhc@exodus.Eng.Sun.COM>
  9. Date: Mon, 4 Jan 1993 19:59:42 GMT
  10. Lines: 40
  11.  
  12.  
  13. To answer the original question, standard Fortran 90 allows dynamic
  14. allocation through two mechanisms (one of which is the very well thought
  15. out ALLOCATABLE attribute, and the other is a very poorly thought out
  16. pointer facility).  The Fortran 77 standard does not allow dynamic
  17. allocation.  The LWG Fortran specification included a pointer facility
  18. (which was both simpler and better than the Fortran 90 version) which
  19. has been adopted by many vendors as an extension to Fortran 77 - most
  20. notably (from my point of view) both Cray and Sun use the LWG pointer
  21. mechanism.
  22.  
  23. Note: the LWG Fortran specification was written by the DOE Language
  24. Working Group (LWG) in final form in 1982.  I has many features in
  25. it which are more desirable than the Fortran 90 counterparts.
  26.  
  27. In article <ljdc3hINNqhc@exodus.Eng.Sun.COM>, corbett@lupa.Eng.Sun.COM (Robert Corbett) writes:
  28. |> [...]
  29. |> A few points to observe are
  30. |> 
  31. |>     (1)  FORTRAN 66, FORTRAN 77, and Fortran 90 are all informal
  32. |>      names.  The official names of the languages are either
  33. |>      FORTRAN or Fortran.
  34.  
  35. FORTRAN 77 is the designation recommended by the standard document itself
  36. (ANSI X3.9-1978, Forward):
  37.  
  38.    It is suggested that the designation FORTRAN 77 be used to distinguish
  39.    this standard from previous FORTRAN standards and any possible future
  40.    revisions.
  41.  
  42. Similarly, "Fortran 90" is actually the *title* of the ISO version
  43. of the new standard.  Whether these designations are *official*
  44. or merely *officially informal*, they are clearly the appropriate
  45. names to use.  As far as I can tell, the Fortran 90 document uses
  46. these terms throughout.  (It solves the question of whether Fortran 77
  47. is upper- or lower-case by using small caps for all letters after the
  48. initial `F'.)
  49.  
  50. -- 
  51. J. Giles
  52.