On Sun, Nov 27, 2011 at 6:44 PM, Alexey Veselovsky <alexey.veselovsky@gmail.com> wrote:
I'm trying to switch from C++ to D. But I can't find some things that
I love in C++. For example in C++ I can separate module specification
and implementation. Advertising article "The Case for D" says that it
is real in D too:

"D has a true module system that supports separate compilation and
generates and uses module summaries (highbrowspeak for "header files")
automatically from source, so you don't need to worry about
maintaining redundant files separately, unless you really wish to, in
which case you can. Yep, that stops that nag right in mid-sentence."

But it is not true...

The separation of specification and implementation in C/C++ is not some feature that they came up.  I would call it a design defect.  Having to split up code between header files and source files is one of the things I dislike about C/C++.  As for why anyone would be in love with such a thing, well that's just beyond me.