DIP69 - Implement scope for escape proof references

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 13 02:10:27 PST 2014


Walter Bright:

>>> struct Tree {
>>>    RefCount!(Tree*) left;
>>>    RefCount!(Tree*) right;
>>>    ...
>>> }
>>
>> ... I don't think I'd ever have a use for this code.
>
> You have no use for tree structures?

Giving a reference counter to every pointer in a binary tree 
sounds a bit too much.

Bye,
bearophile


More information about the Digitalmars-d mailing list