On 18 Feb 02, at 10:46, [EMAIL PROTECTED] wrote:

> Philip Newton wrote:
> > Well, existing compilers tend to be slow to implement new
> > standards such as C99....
> >
> > So for my purposes, "standard C" is "ANSI C" i.e. "K&R 2nd ed.". YMMV.
> 
> Interestingly, in this particular case, many vendors are very
> *quick* to implement, often implementing before it happened. :)
> 
> Translation: The two dominant C compilers, gcc and Microsoft MSVC,
> both supported // comments in C long before the C99 standard.
> I suspect this is because they make both C and C++ compilers
> and it is easier to share a single comment-stripper for both.

Possible. I know that Borland Turbo C on the PC supported //-style 
comments in 1992; however, that was also a combined C/C++ compiler (at 
least the version I had -- earlier versions did C only and I don't know 
whether they supported //-style comments).

But remember that "all the world's not a gcc". I don't know how much 
luck you'd have an Solaris's or HP-UX's cc.

Cheers,
Philip
-- 
Philip Newton <[EMAIL PROTECTED]>
  • ... Andrew . Savige
    • ... Philip Newton
      • ... Peter Makholm
        • ... Philip Newton
      • ... Dmitry Kohmanyuk Дмитрий Кохманюк
        • ... Philip Newton
    • ... Andrew . Savige
      • Philip Newton

Reply via email to