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.

Reply via email to