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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!think.com!Think.COM!sandee
  2. From: sandee@Think.COM (Daan Sandee)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Using ! to denote a comment
  5. Date: 21 Jul 1992 20:57:20 GMT
  6. Organization: TMC
  7. Lines: 16
  8. Distribution: world
  9. Message-ID: <14htngINNi6v@early-bird.think.com>
  10. References: <21JUL199214442858@summa.tamu.edu>
  11. NNTP-Posting-Host: telecaster.think.com
  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. |> 
  17. |>     x=x+1    ! This is a comment
  18. |> 
  19. |> Is this standard Fortran 77 or is it a VAX extension only?  
  20.  
  21. It is not standard Fortran 77. 
  22. It is an extension found in many compilers, e.g. DEC or Cray or TMC.
  23. Your compiler should tell you about this when you turn on the appropriate
  24. option to flag non-ANSI usage, or whatever the manual calls it.
  25.  
  26. Daan Sandee                                           sandee@think.com
  27. Thinking Machines Corporation
  28. Cambridge, Mass 02142                                 (617) 234-5044
  29.