radical ideas about GC and ARC : need to be time driven?

via Digitalmars-d digitalmars-d at puremagic.com
Tue May 13 10:53:08 PDT 2014


On Tuesday, 13 May 2014 at 14:46:18 UTC, Kagamin wrote:
> On Tuesday, 13 May 2014 at 13:21:04 UTC, Jacob Carlborg wrote:
>> The GC will only call destructors when it deletes an object, 
>> i.e. when it runs a collection. There's no guarantee that a 
>> collection will happen.
>
> Ah, so when GC collects an object, it calls destructor. It 
> sounded as if it's not guaranteed at all.

Currently it isn't, because the GC sometimes lacks type 
information, e.g. for dynamic arrays.


More information about the Digitalmars-d mailing list