Destructors vs. Finalizers

Moritz Maxeiner via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 26 16:30:39 PDT 2017


On Wednesday, 26 July 2017 at 23:28:38 UTC, Moritz Maxeiner wrote:
>
> This falsely assumes that all members point into the GC pool. A 
> finalizer may freely work on non-pointer members and pointer 
> members that target objects outside the GC pool which the 
> programmer knows to be valid at finalization (e.g. they are 
> manually managed).

* freely with the exception of not allocating using the GC, of 
course.


More information about the Digitalmars-d mailing list