Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsc!nichols From: nichols@cbnewsc.ATT.COM (robert.k.nichols) Newsgroups: comp.lang.c++ Subject: Re: C++ Comments Summary: cpp -C should fix it Keywords: cpp comments Message-ID: <958@cbnewsc.ATT.COM> Date: 24 May 89 03:20:15 GMT References: <6957@brunix.UUCP> <9383@alice.UUCP> Reply-To: nichols@iexist.ATT.COM (robert.k.nichols) Organization: AT&T Bell Laboratories Lines: 21 In article <9383@alice.UUCP> ark@alice.UUCP (Andrew Koenig) writes: |In article <6957@brunix.UUCP>, sdm@cs.brown.edu (Scott Meyers) writes: |> Consider the following C++ source line: |> //********************** |> How should this be treated by the C++ compiler? | |It's a // comment followed by a bunch of *'s. | |However, many C preprocessors strip comments out of your |program and also don't recognize C++ comments. Thus by the |time the C++ compiler sees this, it looks like this: | | / If cpp is invoked with the "-C" option it will leave comments as is, which should solve problems like the above. This won't solve problems with // comments in macro definitions, though. -- .sig included at no extra charge. | Disclaimer: My mind is my own. Cute quote: `` '' | >> Bob Nichols nichols@iexist.att.com << |