Hi!

18-Июл-2006 10:51 [EMAIL PROTECTED] (Jim Hall) wrote to
freedos-devel@lists.sourceforge.net:

JH> I don't have my copy of Kernighan & Ritchie's "C Programming Language
JH> (ed. 2)" with me to show you, but here is an excerpt from ISO/IEC
JH> 9899:TC2 WG14/N1124 Committee Draft - May 6, 2005 (6.4.9 Comments, page
JH> 66) that says the same thing:
>> Except within a character constant, a string literal, or a comment,
>> the characters /*
>> introduce a comment. The contents of such a comment are examined only
>> to identify
>> multibyte characters and to ?nd the characters */ that terminate it.
JH> With a footnote that says simply: "Thus, /* ... */ comments do not nest."

     I know this.

JH> Some pre-ISO C compilers would barf if you had commented-out a statement
JH> like so:
JH> /* i++; /* increment the index */

     And some of these compilers are TC and BC. BTW, very long, after TC was
introduced and was available to me, I was use -C option ("Allow nested
comments").

JH> Although I hear King John of England only programmed in LISP, so nested
JH> C comments weren't a problem for him.  :-)

     Isn't Ada (Lovelace) nearer to him? :) And in Ada language also only
line-ending comments.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to