home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3683 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  972 b 

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