Nested /* */ comments

Deewiant deewiant.doesnotlike.spam at gmail.com
Sat Mar 4 06:18:54 PST 2006


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.



More information about the Digitalmars-d mailing list