home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!mips!apple!apple!netcomsv!mork!xtifr
- From: xtifr@netcom.com (Chris Waters)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: Doesn't gcc like // comments?
- Message-ID: <8ndmvlj.xtifr@netcom.com>
- Date: 21 Jul 92 10:29:33 GMT
- References: <r!=mdbj.rcain@netcom.com> <d!dm_8m.grega@netcom.com>
- Followup-To: comp.std.c
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 13
-
- In <d!dm_8m.grega@netcom.com> grega@netcom.com (Greg Altman) writes:
-
- >I have some ANSI C code that uses // (since ICC and CL do accept them).
-
- Er, no you don't. If it has // as a comment character, it is *not* ANSI
- compliant code. Just a minor nit. Yes, many compilers do accept this,
- but they must *not* accept it if run in full ANSI-compliant mode (e.g.
- -ansi for GCC, /Za for CL).
-
- Followups to comp.std.c
- --
- Chris Waters | the insane don't | NOBODY for President!
- xtifr@netcom.COM| need disclaimers | Because Nobody's perfect!!
-