Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!wuarchive!uunet!lll-winken!iggy.GW.Vitalink.COM!widener!sven From: sven@cs.widener.edu (Sven Heinicke) Newsgroups: comp.lang.c Subject: Re: Nested comments in VAX C -- Help! Message-ID: Date: 7 May 91 17:02:41 GMT References: <114836@cc.utah.edu> Organization: Widener CS Dept Lines: 18 In , brendan@cs.widener.edu writes: >In <114836@cc.utah.edu>, RCAPENER@cc.utah.edu writes: >>if you try /* outside comment /* inside comment */ */ >>the compiler throws up! > > As it should .. no compiler should let that through. > When you "nest" comments, you have multiple starts (/*); the */ >sequence tells cpp that it's the end of the comment, and it should >start paying attention again. The second */ is what it's throwing up on. > it is bad, I do a string-replace from */ to ^/ and string-replace it back afterwards. -- sven@cs.widener.edu Widener CS system manager Sven Mike Heinicke and Student (pssmheinicke@cyber.widener.edu (if you must))