home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / std / c / 2355 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!samsung!transfer!nighthawk.clearpoint.com!nighthawk!jeff
  2. From: jeff@claw.clearpoint.com (Jeffrey J. Griglack)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Doesn't gcc like // comments?
  5. Message-ID: <JEFF.92Jul21151841@claw.clearpoint.com>
  6. Date: 21 Jul 92 20:18:41 GMT
  7. References: <r!=mdbj.rcain@netcom.com> <d!dm_8m.grega@netcom.com>
  8.     <8ndmvlj.xtifr@netcom.com>
  9. Sender: usenet@nighthawk.clearpoint.com (USENET News System)
  10. Reply-To: jeff@fang.clearpoint.com
  11. Followup-To: comp.std.c
  12. Organization: /home/jeff/.organization
  13. Lines: 20
  14. In-Reply-To: xtifr@netcom.com's message of 21 Jul 92 10:29:33 GMT
  15. Nntp-Posting-Host: claw.clearpoint.com
  16.  
  17. On 21 Jul 92 10:29:33 GMT, xtifr@netcom.com (Chris Waters) said:
  18.  
  19. C> In <d!dm_8m.grega@netcom.com> grega@netcom.com (Greg Altman) writes:
  20.  
  21. >I have some ANSI C code that uses // (since ICC and CL do accept them).
  22.  
  23. C> Er, no you don't.  If it has // as a comment character, it is *not* ANSI
  24. C> compliant code.  Just a minor nit.  Yes, many compilers do accept this,
  25. C> but they must *not* accept it if run in full ANSI-compliant mode (e.g.
  26. C> -ansi for GCC, /Za for CL).
  27.  
  28. G++ likes // for a comment line.  It works just fine for me.  // is standard 
  29. for C++, though there is not yet an ANSII standard for C++.
  30. --
  31.  
  32. -------------------------------------------------------------------------------
  33. |Jeff Griglack             |"Hey, you talking to me or are you just practicing|
  34. |jeff@claw.clearpoint.com  | for one of those performances you do?"           |
  35. |jeff@fang.clearpoint.com  |                          -- Lori Anderson        |
  36. -------------------------------------------------------------------------------
  37.