Xref: utzoo comp.lang.c:32826 comp.std.c:3755 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!purdue!haven!mimsy!mojo!news From: rfink@eng.umd.edu (Russell A. Fink) Newsgroups: comp.lang.c,comp.std.c Subject: Answers to 'can I nest comments?' Message-ID: <1990Oct12.164737.23574@eng.umd.edu> Date: 12 Oct 90 16:47:37 GMT Sender: news@eng.umd.edu (The News System) Organization: Civil Engineering Department Lines: 29 Just a follow-up note to the question I asked a couple of days back. Thanks to all who gave answers. For the record, the unanimous concensus was that nested comments become whitespace, or, more specifically, printf( "The value of number is: %d.\n", num/* this is obnoxious */ber ); becomes printf( "The value of number is: %d.\n", num ber ); HOWEVER, that is just the standard implementation. Several compilers will reportedly generate printf( "The value of number is: %d.\n", number ); although, by K&R et. al., there are no guarantees. "What in hades would you want with that", you ask? Well, I am trying to make a lex program to parse c input, or at least strip out comments, and no mention was made on how this class project is supposed to handle such input; I figured I'd try to mimick standard conventions as much as possible. Thanks, usenauts! -- //===== //===== Russ Fink =============== // //____ rfink@eng.umd.edu // // University of Maryland //===== //===== College Park ============