(Non) Nesting block comments

Michiel Helvensteijn m.helvensteijn.remove at gmail.com
Mon Jul 20 15:02:30 PDT 2009


bearophile wrote:

>> I was wondering, though. C++ compatibility aside, is there an actual use
>> case for the C style block comments anymore?
> 
> C compatibility is an important goal of D, so you can't put it aside.

Of course. It was mostly theoretical. It may be generally interesting.

> (Time ago I have suggested the opposite, to make the /* */ nestable and
> remove /+ +/, but this idea was not appreciated by D devs.)

I can understand that. It would break compatibility:

/* /* */ (here be code in C, comment in D)

-- 
Michiel Helvensteijn




More information about the Digitalmars-d mailing list