boost crowd.

Max Samukha maxter at spambox.com
Mon Nov 28 03:58:25 PST 2011


On 11/28/2011 11:44 AM, so wrote:
> On Mon, 28 Nov 2011 11:42:24 +0200, Caligo <iteronvexor at gmail.com> wrote:
>
>> On Sun, Nov 27, 2011 at 6:44 PM, Alexey Veselovsky <
>> alexey.veselovsky at 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.
>
> How would you write libraries?

The way they do, for example, in C# - interface definitions are stored 
in the library, no need for separate headers.


More information about the Digitalmars-d mailing list