Why did D leave the programming language shootout and will it return?

Heinz Saathoff newshsaat at arcor.de
Fri Sep 23 00:27:42 PDT 2011


Walter Bright wrote...
> Once subtlety that Andrei and I suspect will have a huge impact in the future is 
> that we've carefully designed the semantics of structs so they can be moved 
> around in memory with a simple bitcopy.
> 
> (In contrast, C++ must invoke the copy constructor.)

Only if a user supplied constructor is defined. The compiler generated 
constructor is just a bit copy and the destructor a null-operation.
The rule in C++ is that you only pay for what you use. 


- Heinz


More information about the Digitalmars-d mailing list