Getting completely (I mean ENTIRELY) rid off GC

eles via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 16:52:15 PDT 2014


On Friday, 12 September 2014 at 20:41:53 UTC, Marco Leise wrote:
> Am Fri, 12 Sep 2014 15:43:14 +0000
> schrieb "Chris" <wendlec at tcd.ie>:

> With only ARC, if two objects reference each other, they keep
> each other alive indefinitely unless one of the references is a
> "weak" reference, which doesn't count as a real reference

But do we need more than that? Translating the question into C++:

what use case wouldn't be covered by unique_ptr and shared_ptr?

Cycles like that could happen in manual memory management, too. 
There is Valgrind for that...


More information about the Digitalmars-d mailing list