More radical ideas about gc and reference counting

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 13:57:45 PDT 2014


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.)


More information about the Digitalmars-d mailing list