> 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.
It is easy enough with an editor to put "!" in front of each line of the
comment 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?)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|