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

12345swordy alexanderheistermann at gmail.com
Thu Dec 21 16:13:27 UTC 2017


On Thursday, 21 December 2017 at 06:50:44 UTC, Mike Parker wrote:
> On Thursday, 21 December 2017 at 04:10:56 UTC, user1234 wrote:
>> [...]
>
>>>[...]
>
>> [...]
>
> The root of the problem is that in D, class destruction and 
> finalization are conflated. It would be much more accurate to 
> refer to ~this in classes as a finalizer. Then this sort of 
> confusion wouldn't be so widespread.
>
> [...]

Have you considered writing a DIP on this?


More information about the Digitalmars-d-learn mailing list