<br><br><div class="gmail_quote">On Sun, Nov 27, 2011 at 6:44 PM, Alexey Veselovsky <span dir="ltr"><<a href="mailto:alexey.veselovsky@gmail.com">alexey.veselovsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm trying to switch from C++ to D. But I can't find some things that<br>
I love in C++. For example in C++ I can separate module specification<br>
and implementation. Advertising article "The Case for D" says that it<br>
is real in D too:<br>
<br>
"D has a true module system that supports separate compilation and<br>
generates and uses module summaries (highbrowspeak for "header files")<br>
automatically from source, so you don't need to worry about<br>
maintaining redundant files separately, unless you really wish to, in<br>
which case you can. Yep, that stops that nag right in mid-sentence."<br>
<br>
But it is not true...<br>
</blockquote></div><br>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.  <br>