This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: comments in Fortran
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: comments in Fortran
- From: Geoff Keating <geoffk at envy dot cygnus dot com>
- Date: 09 Jan 2000 21:54:31 -0800
- CC: gcc at gcc dot gnu dot org
- References: <20000108205305.A13914@wolery.cumb.org>
Zack Weinberg <zack@wolery.cumb.org> writes:
> Can someone please tell me the exact rules for comments in Fortran?
> I'm particularly confused about the sort that starts with a character in
> column 1 (can it be any character?), how you tell an ! comment from a string
> with an ! in it, and how both of them interact with continuation lines.
If I remember this correctly, in the old F77 layout, any character in
column 1 means a comment. I think emacs fortran-mode uses 'c' for
this, '!' is not such a good idea because it gets used for language
extensions.
I'm just looking at some code where
!OCL novrec(x)
is similar to what in C would be
#pragma OCL novrec(x)
--
- Geoffrey Keating <geoffk@cygnus.com>