GC Destruction Order

Namespace via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 19 12:45:37 PDT 2015


On Tuesday, 19 May 2015 at 19:36:23 UTC, rsw0x wrote:
> On Tuesday, 19 May 2015 at 18:37:31 UTC, bitwise wrote:
>> On Tue, 19 May 2015 14:19:30 -0400, Adam D. Ruppe 
>> <destructionator at gmail.com> wrote:
>>
>>> On Tuesday, 19 May 2015 at 18:15:06 UTC, bitwise wrote:
>>>> Is this also true for D?
>>>
>>> Yes. The GC considers all the unreferenced memory dead at the 
>>> same time and may clean up the class and its members in any 
>>> order.
>>
>> Ugh... I was really hoping D had something better up it's 
>> sleeve.
>
> It actually does, check out RefCounted!T and Unique!T in 
> std.typecons. They're sort of limited right now but undergoing 
> a major revamp in 2.068.

By the way: when is 2.068 released?


More information about the Digitalmars-d-learn mailing list