Re^2: Why nested comments not allowed?

Dan Barrett barrett at jhunix.HCF.JHU.EDU
Wed Feb 21 15:39:34 AEST 1990


In article <4509 at jarthur.Claremont.EDU> dfoster at jarthur.Claremont.EDU (Derek R. Foster) writes:
>It seems to me that putting a start or end
>comment in a string literal (like above) is a HORRIBLE programming practice
>whether you can have nested comments or not.

	Oh yes?  Well, what if you are writing a C program that generates
C code as its output?  This is a common practice.

                                                        Dan

 //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
| Dan Barrett, Department of Computer Science      Johns Hopkins University |
| INTERNET:   barrett at cs.jhu.edu           |                                |
| COMPUSERVE: >internet:barrett at cs.jhu.edu | UUCP:   barrett at jhunix.UUCP    |
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////



More information about the Comp.lang.c mailing list