scope keyword - a maintenance nightmare?

Lutger lutger.blijdestijn at gmail.com
Sat Aug 18 03:08:35 PDT 2007


Guenther Brunthaler wrote:
...
> However, there is one thing left in the linked web page above like which I still find rather disturbing:
> 
>> But they are not required in the way that C++ header files are, and they are
>> not part of the D language. They are a feature of the compiler, and serve
>> only as an optimization of the build process.
> 
> If they are not part of the language, then one is at the mercy of a compiler to provide them! And in fact, every compiler could do it its own way, using a different layout or even a different syntax if it wants to.

Is that really a problem? Practically speaking, it could be done by some 
tool too. D is far easier to parse than C++ so I don't think this is a 
difficult thing to achieve. IIRC, in C++ the whole interface / 
implementation file seperation thing is not standardized either.




More information about the Digitalmars-d mailing list