Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!rutgers!mcnc!decvax.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.std.c Subject: Re: warning: '/*' within comment Message-ID: <1761@tkou02.enet.dec.com> Date: 4 Jun 90 01:09:07 GMT References: <1990Jun1.200433.6919@druid.uucp> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 16 In article <1990Jun1.200433.6919@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes: >Is there anything in the standard that >allows the compiler to ignore the quotes while inside a comment. In fact, a compiler is REQUIRED to ignore quotes while inside a comment. /* If a compiler doesn't ingore this comment, it is broken. Though if it wishes to be unpopular, it may warn about the apostrophe. */ char *x = "Address of " /* Beginning of string; comment with extra " mark */ "string"; /* and x MUST point to "Address of string". */ -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com Proposed group comp.networks.load-reduction: send your "yes" vote to /dev/null.