What is the difference between D and C++ regarding Unique, RefCounted and Scoped?

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 9 14:05:55 PDT 2015


On Wednesday, 9 September 2015 at 20:37:40 UTC, cym13 wrote:
> Hence my question: in what? (I assume you are talking about 
> Unique RefCounted etc and not about classes).

I think you should just refer them to the relevant man pages. 
Explanations are just going to be confusing as they are 
different. You can compare for yourself:

http://en.cppreference.com/w/cpp/memory
http://en.cppreference.com/w/cpp/language/value_category

http://dlang.org/phobos/std_typecons.html
http://dlang.org/phobos/std_algorithm_mutation.html



More information about the Digitalmars-d-learn mailing list