Advice wanted on garbage collection of sockets for c++ programmer using D

Guillaume Piolat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 27 16:42:38 PDT 2017


On Tuesday, 27 June 2017 at 18:04:36 UTC, Moritz Maxeiner wrote:
>
> Well, technically speaking the `~this` for D classes *is* a 
> finalizer that you may optionally manually call (e.g. via 
> destroy).
> It would be nice, though, to change class `~this` into a 
> destructor and move the finalization into an extra method like 
> `finalize`. Write a DIP?

The only sane way out is to prevent the GC from calling 
constructors.


More information about the Digitalmars-d-learn mailing list