Article View: comp.std.c
Article #2238Re: comment style
From: Norman Diamond
Date: Mon, 07 Jan 1991 02:30
Date: Mon, 07 Jan 1991 02:30
21 lines
1664 bytes
1664 bytes
In article <1990Dec29.040256.21708@clear.com> rmartin@clear.com (Bob Martin) writes: >Does anybody know what the standard says about nested comments? >i.e. /* > /* is this valid > /* or will it generate errors > /**/ >The sun C++ compiler chokes on comments like this, as do a few other C >compilers around. What is the official stance. So the sun C++ compiler is does not conform to the ANSI C standard. No C++ compiler can, though not for this reason. The other compilers mentioned are not ANSI C compilers, though they seem to be asserted as compilers for other dialects of C. Extraneous warnings are allowed (and are obviously desirable in this case, though should be optionable), but choking is not allowed. -- -- Norman Diamond diamond@tkov50.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it.
Technical Details
Message-ID:
<1991Jan7.023042.23190@jituha.enet.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!haven!decuac!lemans.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!jituha!jit345!diamondReferences:
<1990Dec21.014321.5000@kithrup.COM> <26036@uflorida.cis.ufl.EDU> <1990Dec27.215842.23685@ivy.uucp> <1990Dec29.040256.21708@clear.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!haven!decuac!lemans.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!jituha!jit345!diamond From: diamond@jit345.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.std.c Subject: Re: comment style Message-ID: <1991Jan7.023042.23190@jituha.enet.dec.com> Date: 7 Jan 91 02:30:42 GMT References: <1990Dec21.014321.5000@kithrup.COM> <26036@uflorida.cis.ufl.EDU> <1990Dec27.215842.23685@ivy.uucp> <1990Dec29.040256.21708@clear.com> Sender: news@jituha.enet.dec.com (USENET News System) Reply-To: diamond%tkov50.enet.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 21