D 2015/2016 Vision?

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 8 03:34:42 PDT 2015


On Thursday, 8 October 2015 at 10:26:22 UTC, Kagamin wrote:
> On Thursday, 8 October 2015 at 10:15:12 UTC, Ola Fosheim 
> Grøstad wrote:
>> You have to use weak pointers for back references.
>>
>> http://en.cppreference.com/w/cpp/memory/weak_ptr
>
> I suspected as much and the next question is how is it better 
> than C# solution except that one used to cope with C++ way?

I don't know. I don't like extensive reference counting and don't 
use weak_ptr. One can usually avoid cycles for resources by 
design.



More information about the Digitalmars-d mailing list