Nested /* */ comments
Bruno Medeiros
daiphoenixNO at SPAMlycos.com
Sun Mar 5 02:39:16 PST 2006
Deewiant wrote:
> Bruno Medeiros wrote:
>> Why is it that the /* */ comments are not already nestable? Can it be
>> done? It wouldn't even hurt C code porting
>
> It can be done, but it would hurt porting, which is probably why it's not been
> done. It's not that rare to see multiple "/*" relying on one "*/" to close them
> all. Were they made nesting, only the last would be closed and the code would break.
Hum, that's right, didn't remember about that case, although it seems
like a bad practice to do that in C/C++ code. I still prefer that /* */
were nestable.
--
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list