rust reaction to walter's talk on interfacing to C++

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 22 04:50:29 PDT 2016


On Tuesday, 22 March 2016 at 11:03:10 UTC, Mike Parker wrote:
>> That's funny. I would have said that those were _advantages_ 
>> for D. D's constness can certainly be unwieldy (some sort of 
>> equivalent to C++ mutable would be a very welcome addition if 
>> we could pull it off), but whatever flaws D's const may have, 
>> the transitivity is a huge plus overall IMHO, and I would have 
>> said that the struct/class split was a huge win. It properly 
>> segregates the inheritance stuff to reference types while not 
>> forcing all user-defined types of any complexity to be 
>> reference types.
>>
>> So, while I'm quite sure that Rust has advantages over D, I 
>> would not have listed those among them.
>
>
> In general, yes, but in terms of interfacing with C++ they are 
> a bit irksome.

That's true. If you're talking specifically about interfacing 
with C++, then some of D's improvements over C++ do become a 
problem.

- Jonathan M Davis


More information about the Digitalmars-d mailing list