A comparison between C++ and D

maik klein via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 8 19:23:48 PST 2016


On Wednesday, 9 March 2016 at 03:04:31 UTC, 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
I don't think so. You can read more about it here 
https://dlang.org/phobos/std_algorithm_mutation.html#move

>
>> version(YourKeywork){...}.
>
> Should be "Keyword".
Thanks not sure why this wasn't highlighted as an error.




More information about the Digitalmars-d mailing list