From -21045358562175237
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,7d7ff221635a5a63
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,7d7ff221635a5a63
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-08-27 11:50:02 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: "Raghu B.Uppalli" <rbuppall@mcnc.org>
Newsgroups: comp.lang.c++,comp.std.c++
Subject: Re: Nested comments
Followup-To: comp.lang.c++
Date: 27 Aug 2002 18:50:01 GMT
Organization: MCNC / NC-REN
Lines: 39
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <akggsu$4fe$1@inxs.ncren.net>
References: <akbc8s$mk$1@newsreader.mailgate.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ncar.ucar.edu
User-Agent: KNode/0.7.1
Xref: archiver1.google.com comp.lang.c++:167247 comp.std.c++:13410

Sachin Garg wrote:

> Hi,
> 
> Are nested /**/ comments allowed in standard C++
> 
> /*
> ....
>    /*
>         .....
>         .....
>     */
> .....
> */

No. But if you need to do nested commenting,a  common trick is to use teh
 preprocessor directives.

Eg:

#if 0
/* ,,,,,,,,,,,, 
dksaldka
  /*
        jjdasldas
  */
lasldsa
*/
#endif

Everything in here is a comment. It is a little obscure, but helps if you
are testing stuff and dont want to mess up with your existing comments.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



