[RFC][PATCH] -d_lines

Brooks Moses bmoses@stanford.edu
Wed Aug 17 20:45:00 GMT 2005


Tobias Schlüter wrote:
> 2. I've decided to create three possibilities:
>    - -fd-lines given: treat 'd' in column 1 as equivalent to a single blank
>    - -fno-d-lines given: treat 'D' in column 1 as equivalent to a 'C'
>      (=comment)
>    - neither option given: syntax error (behavior following the standard)
> Does everybody agree that this is the right way to deal with this?

I somewhat disagree with this choice of names, as I would expect 
-fno-d-lines to undo a -fd-lines option, and vice versa.  In particular, 
I would not expect an option named -fno-d-lines to allow d lines as 
comments, when the default is not to do so!

Thus, I suggest as a counteroffer:

   -fd-lines: treat 'd', 'D' in column 1 as a blank.
   -fno-d-lines: negates a preceeding -fd-lines.
   -fd-comments: treat 'd', 'D' in column 1 as a 'C'.
   -fno-d-comments: negates a preceeding -fd-comments.

(Alternately, these could be named -fd-lines-code and -fd-lines-comments.)

I agree that supplying none of the above should produce the same results 
that it does currently, which I gather is the standard-conforming syntax 
error.

If both -fd-lines and -fd-comments are supplied, I would suggest that 
either -fd-lines should take precedence, or the last-supplied option 
should take precedence -- whichever is easier to implement.

- Brooks



More information about the Fortran mailing list