Article View: comp.sys.amiga.tech
Article #5310Re: SAS C 5.10 and nested comments
From: rick
Date: Fri, 14 Sep 1990 13:46
Date: Fri, 14 Sep 1990 13:46
26 lines
1471 bytes
1471 bytes
In article <2076@nyx.UUCP>, chanson@nyx.UUCP (chris hanson) writes:
[lots deleted]
> [...] If I recall (I use the nested comment feature alot, love to
> comment out a block o' code for testing), in 5.0x, the nested comments
> option was -cc, not -cn.
I dunno about SAS/C, but since nested comments aren't always supported (the
ANSI standard, in fact, explicitly says that comments DON'T NEST (section
3.1.9 and footnote 26, ANSI standard X3.159-1989)), the better way to do
this is:
#if 0
[stuff to be ignored]
#endif
You're guaranteed of ANSI compatibility this way, and it'll compile on any
machine.
----------------------------------------------------------------------------
[- O] Rick Stevens, Technology Marketing Incorporated
? EMail: uunet!zardoz!tmiuv0!rick -or- uunet!zardoz!xyclone!sysop
V CIS: 75006,1355 (75006.1355@compuserve.com from Internet)
(Opinions are mine. No one listens to me here anyway.)
"Lead, follow, or get the h*ll out of the way!"
----------------------------------------------------------------------------
Technical Details
Message-ID:
<470@tmiuv0.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!zardoz.cpd.com!tmiuv0!rickReferences:
<2076@nyx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!zardoz.cpd.com!tmiuv0!rick From: rick@tmiuv0.uucp Newsgroups: comp.sys.amiga.tech Subject: Re: SAS C 5.10 and nested comments Message-ID: <470@tmiuv0.uucp> Date: 14 Sep 90 13:46:48 GMT References: <2076@nyx.UUCP> Organization: Technology Marketing Inc., Irvine, CA Lines: 26