[RFC][PATCH] -d_lines

Richard E Maine Richard.Maine@nasa.gov
Thu Aug 18 01:56:00 GMT 2005


On Aug 17, 2005, at 1:31 PM, Bernhard Fischer wrote:

> On Wed, Aug 17, 2005 at 09:54:58PM +0200, Tobias Schlüter wrote:
>
>>   - -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?
>
> Personally, i'd prefer to have -fno-d-lines as default (eventually warn
> about it in -pedantic).

If I understand correctly, then I vehemently disagree with that 
preference. I *DESPISE* compilers that by default accept nonstandard 
code features like that without even a hint of warning. Allow the 
option, sure, but put the burden of having to specify the option on the 
user who uses the nonstandard feature, rather than on the user who is 
trying to code to the standard. That is to say, make it a conscious and 
explicit choice to use such nonstandard features.

If you want to throw it in as also set by one of the other "accept a 
whole bunch of common nonstandard things" switches (I forget the names, 
but there were some), that's fine, but don't make it the default.

All in my opinion, of course, even if I happen to hold that particular 
opinion fairly strongly.

-- 
Richard Maine                |  Good judgment comes from experience;
Richard.Maine@nasa.gov       |  experience comes from bad judgment.
                             |        -- Mark Twain



More information about the Fortran mailing list