Garbage Collector?

Ola Fosheim Grostad via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 28 15:31:06 PDT 2017


On Friday, 28 April 2017 at 21:21:13 UTC, jmh530 wrote:
> To be fair, C++ effectively has multiple pointer types too with 
> raw pointers, unique_ptr, shared_ptr, and weak_ptr. However, 
> each of the extra ones has a unique purpose and are opt-in. As 
> a result, people happily use them when it makes their lives 
> easier.

Yes, they are not language types though, so no special effect on 
the compiler or runtime. The language types are pointers, 
&references and &&references.

> By contrast, C++/CLI (I'm more familiar with that than managed 
> C++) has pointer to managed heap and pointer to unmanaged heap. 
> The concepts overlap more.

Yes, and I assume those are language types so that the compiler 
and runtime can take advantage of it?



More information about the Digitalmars-d mailing list