🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1374

Re: warning: '/*' within comment

#1374
From: diamond
Date: Mon, 04 Jun 1990 01:09
16 lines
1248 bytes
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.
Technical Details
Message-ID: <1761@tkou02.enet.dec.com>
Path: arc1-ca.pugleaf.net!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
References: <1990Jun1.200433.6919@druid.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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