class destruction
Q via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 9 08:37:48 PDT 2015
On Wednesday, 9 September 2015 at 15:32:58 UTC, Adam D. Ruppe
wrote:
> On Wednesday, 9 September 2015 at 15:24:57 UTC, Q wrote:
>> I thought that is not guaranteed, according to the docs?
>
> It is possible that the GC will never actually run, but you can
> force it to if you need it to by calling GC.collect at any time.
Yes, but according to the specs it is not guaranteed that the GC
calls the DTor if the Object is collected.
More information about the Digitalmars-d-learn
mailing list