Article View: comp.std.c
Article #108Re: Doesn't gcc like // comments?
From: Jeffrey J. Griglack
Date: Tue, 21 Jul 1992 20:18
Date: Tue, 21 Jul 1992 20:18
20 lines
1746 bytes
1746 bytes
On 21 Jul 92 10:29:33 GMT, xtifr@netcom.com (Chris Waters) said: C> 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). C> Er, no you don't. If it has // as a comment character, it is *not* ANSI C> compliant code. Just a minor nit. Yes, many compilers do accept this, C> but they must *not* accept it if run in full ANSI-compliant mode (e.g. C> -ansi for GCC, /Za for CL). G++ likes // for a comment line. It works just fine for me. // is standard for C++, though there is not yet an ANSII standard for C++. -- ------------------------------------------------------------------------------- |Jeff Griglack |"Hey, you talking to me or are you just practicing| |jeff@claw.clearpoint.com | for one of those performances you do?" | |jeff@fang.clearpoint.com | -- Lori Anderson | -------------------------------------------------------------------------------
Technical Details
Message-ID:
<JEFF.92Jul21151841@claw.clearpoint.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!samsung!transfer!nighthawk.clearpoint.com!nighthawk!jeffReferences:
<r!=mdbj.rcain@netcom.com> <d!dm_8m.grega@netcom.com> <8ndmvlj.xtifr@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!samsung!transfer!nighthawk.clearpoint.com!nighthawk!jeff From: jeff@claw.clearpoint.com (Jeffrey J. Griglack) Newsgroups: comp.std.c Subject: Re: Doesn't gcc like // comments? Message-ID: <JEFF.92Jul21151841@claw.clearpoint.com> Date: 21 Jul 92 20:18:41 GMT References: <r!=mdbj.rcain@netcom.com> <d!dm_8m.grega@netcom.com> <8ndmvlj.xtifr@netcom.com> Sender: usenet@nighthawk.clearpoint.com (USENET News System) Reply-To: jeff@fang.clearpoint.com Followup-To: comp.std.c Organization: /home/jeff/.organization Lines: 20 In-Reply-To: xtifr@netcom.com's message of 21 Jul 92 10:29:33 GMT Nntp-Posting-Host: claw.clearpoint.com