home *** CD-ROM | disk | FTP | other *** search
- 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
- From: burley@geech.gnu.ai.mit.edu (Craig Burley)
- Newsgroups: comp.lang.fortran
- Subject: Re: Using ! to denote a comment
- Message-ID: <BURLEY.92Jul21174207@geech.gnu.ai.mit.edu>
- Date: 21 Jul 92 21:42:07 GMT
- References: <21JUL199214442858@summa.tamu.edu>
- Sender: news@ai.mit.edu
- Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139
- Lines: 24
- In-reply-to: elo9246@summa.tamu.edu's message of 21 Jul 92 19:44:00 GMT
-
- 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?
-
- It is not standard. It is a VAX extension, among other vendors. Seems
- pretty popular, from what I've been able to tell.
-
- 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. I can't find it in
- my usual references...
-
- Fortunately, if you get stuck porting to a machine that doesn't support it,
- it's pretty easy to manually search for ! and convert to standard-style
- comments (if you have an editor such as GNU EMACS).
- --
-
- James Craig Burley, Software Craftsperson burley@gnu.ai.mit.edu
- Member of the League for Programming Freedom (LPF)
-