At 19:07 16-10-2000 +0100, Phillip Helbig and GianLuigi Piacentini wrote:
>> C has its comment statement (/* what is here is comment */) which is
>> inherently multiline. It is sometime convenient to comment out a block
>> of code, so I think that such a facility could be welcomed.
>> It's too late to propose it for F2K ?
>> I do not have any idea of what sintax such a comment could have -
>> perhaps
>> !_COMMENT
>> commented code
>> !_ENDCOMMENT
>> I understand that a preprocessor could achieve the same result, but I
>> liked to have the capability integrated within the compiler.
>> Any feedback will be appreciated - Thanks in advance.
>
>Personally, I think this is a bad idea. I think comments should be
>obvious, which is not the case with C-style stuff, especially if neither
>the beginning nor the end is in the current window. Also, consider that
>one sometimes "comments out" code---with multiline comments, this would
>not be obvious at all.
I agree with this.
>It is easy enough with an editor to put "!" in front of each line of the
>comment text.
My editor (Absoft) does comment and uncomment a selected block of text.
>Back in my F77 days, I used to use "*" to (temporarily) comment out
>lines of code and "C" for "real" comments. Does anyone else miss this?
>I realise that I can use "!*" and "!C" or whatever, but it's somehow not
>the same.
>
>As far as !_COMMENT goes, this won't work if the parser sees ! as the
>first non-blank character and ignores the rest of the line! I know that
>some compilers actually do more with comment lines, although just
>literally ignoring them would be possible. (Do any modern compilers
>literally ignore whatever follows as soon as it is obvious that a
>comment has begun?)
HPF compilers for instance interpret comments that are like
!DIR directive
or
!HPF_DIR directive
so this is another argument against multiline comments, I guess.
--
Meilleures Salutations,
Kindest Regards,
/---
Jan van Oosterwijk
Computing Centre
Delft University of Technology
Postbus 354
2600 AJ Delft
Netherlands / Pays-Bas
mailto:[log in to unmask]
Phone: +31 15 27 85017
Fax: +31 15 27 83787
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|