Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ulysses!gsf From: gsf@ulysses.homer.nj.att.com (Glenn Fowler[drew]) Newsgroups: comp.lang.c++ Subject: Re: C++ Comments Summary: cpp must handle // Keywords: cpp comments Message-ID: <11587@ulysses.homer.nj.att.com> Date: 24 May 89 14:53:22 GMT References: <6957@brunix.UUCP> <9383@alice.UUCP> <958@cbnewsc.ATT.COM> Organization: AT&T Bell Laboratories, Murray Hill Lines: 18 In article <958@cbnewsc.ATT.COM>, nichols@cbnewsc.ATT.COM (robert.k.nichols) writes: > > > Consider the following C++ source line: > > > //********************** > 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. even with -C, the lines following a //*** may be treated as a single comment: #define X Y //***** X /* X is not expanded */ to get this right the // must be recognized by each component of the C++ compilation system -- Glenn Fowler (201)-582-2195 AT&T Bell Laboratories, Murray Hill, NJ uucp: {att,decvax,ucbvax}!ulysses!gsf internet: gsf@ulysses.att.com