More radical ideas about gc and reference counting

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 14:00:31 PDT 2014


On 4/30/14, 1:57 PM, Timon Gehr wrote:
> On 04/30/2014 10:45 PM, Andrei Alexandrescu wrote:
>>>
>>> An extreme one indeed, it would break a lot of my code. Every D project
>>> I wrote that does networking manages memory using a class that resides
>>> on the managed heap, but holds the actual wrapped data in the unmanaged
>>> heap.
>>
>> So should I take it those classes all have destructors? -- Andrei
>
> (Yes, those destructors free the unmanaged memory.)

Thanks... that would need to change :o). -- Andrei


More information about the Digitalmars-d mailing list