Destructors vs. Finalizers
Guillaume Piolat via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 26 08:47:46 PDT 2017
On Wednesday, 26 July 2017 at 15:42:45 UTC, jmh530 wrote:
> 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.
Well I like this idea best.
To split C in A and B, deprecate C and tell what to do instead.
More information about the Digitalmars-d
mailing list