This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: comments in Fortran


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]