|
From: Per W. <pw...@ia...> - 2003-06-23 08:55:06
|
Often the one asking a question don't really know exactly what they want - or at least doesn't specify it clearly enough. Yes, multiline comments should of course use /* ... */ but very often when someone gets bothered about commenting away a large number of lines, they are not thinking about a big block-comment, but a large block of unwanted code. /Per W On Mon, 23 Jun 2003, Ioannis Vranos wrote: > I accidentally erased Per Westermark's email so I reply without part of his > message. > > > Why use compilation under condition for comments in C++? > > The best approach on comments in C++ is to use always // for comments, and > use /* */ only for debugging purposes (to comment out blocks of code). > > > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |