Destructor nonsense on dlang.org

Alex Rønne Petersen alex at lycus.org
Thu May 24 07:57:26 PDT 2012


On 24-05-2012 16:54, Andrei Alexandrescu wrote:
> On 5/24/12 9:28 AM, Alex Rønne Petersen wrote:
>> The GC should (and probably does) assume at shutdown that all objects
>> are unreferenced, and therefore reclaim and finalize them.
>
> They may refer to one another.
>
> Andrei
>

Doesn't matter: Nothing is guaranteed about order of finalization (and 
this is reasonable). Thus, the finalizers can be run in any arbitrary 
order. The important point here is that they are run *at all*.

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list