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

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!burley
  2. From: burley@geech.gnu.ai.mit.edu (Craig Burley)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Using ! to denote a comment
  5. Message-ID: <BURLEY.92Jul21174207@geech.gnu.ai.mit.edu>
  6. Date: 21 Jul 92 21:42:07 GMT
  7. References: <21JUL199214442858@summa.tamu.edu>
  8. Sender: news@ai.mit.edu
  9. Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139
  10. Lines: 24
  11. In-reply-to: elo9246@summa.tamu.edu's message of 21 Jul 92 19:44:00 GMT
  12.  
  13. In article <21JUL199214442858@summa.tamu.edu> elo9246@summa.tamu.edu (LaNelle Ohlhausen) writes:
  14.  
  15.    I have seen ! used in a program line in VAX fortran to denote that
  16.    everything following the ! is a comment, e.g.:
  17.  
  18.        x=x+1    ! This is a comment
  19.  
  20.    Is this standard Fortran 77 or is it a VAX extension only?
  21.  
  22. It is not standard.  It is a VAX extension, among other vendors.  Seems
  23. pretty popular, from what I've been able to tell.
  24.  
  25.    I have used
  26.    this structure in some code which I'm compiling with Cray Fortran77, and it 
  27.    compiles and seems to run OK, but I want to make sure.  I can't find it in
  28.    my usual references...
  29.  
  30. Fortunately, if you get stuck porting to a machine that doesn't support it,
  31. it's pretty easy to manually search for ! and convert to standard-style
  32. comments (if you have an editor such as GNU EMACS).
  33. --
  34.  
  35. James Craig Burley, Software Craftsperson    burley@gnu.ai.mit.edu
  36. Member of the League for Programming Freedom (LPF)
  37.