Article View: comp.os.os2.programmer
Article #383Re: Doesn't gcc like // comments?
From: Chris Waters
Date: Tue, 21 Jul 1992 10:29
Date: Tue, 21 Jul 1992 10:29
13 lines
996 bytes
996 bytes
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!!
Technical Details
Message-ID:
<8ndmvlj.xtifr@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!mips!apple!apple!netcomsv!mork!xtifrReferences:
<r!=mdbj.rcain@netcom.com> <d!dm_8m.grega@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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