A comparison between C++ and D

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 10 04:45:59 PST 2016


On 3/8/16 10:04 PM, Jack Stouffer wrote:
> On Wednesday, 9 March 2016 at 01:18:26 UTC, maik klein wrote:
>> Direct link: https://maikklein.github.io/post/CppAndD/
>> Reddit link:
>> https://www.reddit.com/r/programming/comments/49lna6/a_comparison_between_c_and_d/
>>
>>
>> If you spot any mistakes, please let me know.
>
>> D moves objects with a bitwise copy, this means you should not have
>> internal pointers.
>
> Unless you define this(this) right?

No. It's perfectly legal to move a struct without calling the postblit 
AFAIK.

-Steve


More information about the Digitalmars-d mailing list