Don't expect class destructors to be called at all by the GC

Adam D. Ruppe destructionator at gmail.com
Thu Dec 21 23:08:26 UTC 2017


On Thursday, 21 December 2017 at 18:48:38 UTC, H. S. Teoh wrote:
>> Alas, RefCounted doesn't work well with inheritance...
>
> Oh?  What's the issue?

Implicit casts don't work so you can't pass a RefCounted!Class as 
RefCounted!Interface except in simple cases using alias this 
tricks.




More information about the Digitalmars-d-learn mailing list