"Timothy J. Massey" wrote:
> >Ramon van Handel wrote:
> >>
> >> Once again, it looks great !!! Nice base for further coding.
> >> Only, C++ comments are so ugly :) (never mind, I'm a bit
> >> weird ;)).
> >
> >I like C++ comments because they're less intrusive and you don't
> >have to worry about where the end of the comment is. I used
> >to hate them, then I converted.
>
> Same here. Trying to comment out a section of well-documented code in an
> environment that doesn't support nested comments gets really, really old...
My policy is this:
1. Always use C comments. Perferably like this:
/*
* This is a
* loooooooooooonnnnnnnnnnnggggggggg
* comment
*/
/* and this is a short one */
2. When I need to comment out large pieces of code+comments, I enclose
the
code between #if 0 and #endif. VERY effective, and a lot less ugly
than // comments.
I do use // comments while debugging because it's kinda easy to comment
out one line like that, but I try to avoid them in code I distribute.
Of course, if everybody here is for C++ comments I can adapt :)
Ramon