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