[Gambas-user] Are SlashSlash comments okay in the code?
Benoît Minisini
g4mba5 at gmail.com
Sat Mar 2 19:15:54 CET 2019
Le 02/03/2019 à 16:52, Cedron Dawg a écrit :
> Technically they are a C++ feature, but seem to work fine in .c with gcc.
>
> So my question is really more of a policy one.
>
> I prefer all my running comments to be // style, this way I can comment out a whole block with a leading /* and trailing */. Otherwise, I have to either wrap it with a #ifdef (and I despise #defines), or a real code "if( 0 ){}", or temporarily cut and paste the code into a holding place.
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
It's okay. I usually use // for one comment-line, and /* */ for
multi-line comments.
--
Benoît Minisini
More information about the User
mailing list