Destructors vs. Finalizers

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 26 08:42:45 PDT 2017


On Wednesday, 26 July 2017 at 14:57:14 UTC, Guillaume Piolat 
wrote:
>
> But then no transition path.
>

Does seem a bit like a nightmare...

It may facilitate a transition to add a destructor member 
function as well (C# has dispose as an interface, maybe that's 
better?). Then have a deprecation for ~this and tell people to 
use finalize or destructor, and then add back ~this with the 
property that the default ~this calls destructor if that's there.


More information about the Digitalmars-d mailing list