home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2782 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!usc!rpi!uwm.edu!linac!unixhub!slacvx.slac.stanford.edu!fairfield
  2. From: fairfield@slacvx.slac.stanford.edu
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Using ! to denote a comment
  5. Message-ID: <1992Jul21.131602.1@slacvx.slac.stanford.edu>
  6. Date: 21 Jul 92 21:16:02 GMT
  7. References: <21JUL199214442858@summa.tamu.edu>
  8. Sender: news@unixhub.SLAC.Stanford.EDU
  9. Organization: Stanford Linear Accelerator Center
  10. Lines: 21
  11. Nntp-Posting-Host: slacvx.slac.stanford.edu
  12.  
  13. In article <21JUL199214442858@summa.tamu.edu>, elo9246@summa.tamu.edu (LaNelle Ohlhausen) writes:
  14. > I have seen ! used in a program line in VAX fortran to denote that
  15. > everything following the ! is a comment, e.g.:
  16. >     x=x+1    ! This is a comment
  17. > Is this standard Fortran 77 or is it a VAX extension only?  I have used
  18. > this structure in some code which I'm compiling with Cray Fortran77, and it 
  19. > compiles and seems to run OK, but I want to make sure.
  20.  
  21.     No, it is NOT standard Fortran 77; yes, it IS a VMS extension.  
  22. In addition, it has become widely distributed (even IBM's VS Fortran supports
  23. it), and (correct me if I'm wrong) has been incorporated into the Fortran 90
  24. standard.
  25.  
  26. -- 
  27.  Dr. Kenneth H. Fairfield    |  Internet: Fairfield@Slacvx.Slac.Stanford.Edu
  28.  SLAC, P.O.Box 4349, MS 98   |  DECnet:   45537::FAIRFIELD (45537=SLACVX)
  29.  Stanford, CA   94309        |  BITNET    Fairfield@Slacvx
  30.  ----------------------------------------------------------------------------
  31.  These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
  32.