[Gambas-user] Are SlashSlash comments okay in the code?

Cedron Dawg cedron at exede.net
Sat Mar 2 19:28:28 CET 2019


Thanks.  I've just been looking at c_gsl.c and if they aren't, somebody is in trouble.  ;-)

I was just about to post a "nevermind" reply, and I found this message.


----- Original Message -----
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.
> 
 

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