D's Destructors are What Scott Meyers Warned Us About
Mike Franklin
slavo5150 at yahoo.com
Sun May 27 09:05:34 UTC 2018
On Wednesday, 23 May 2018 at 19:05:38 UTC, Manu wrote:
> For my money it would be:
> destroy() <- just destroy
> reset() <- destroy and re-init
>
> Or something like that.
>
> Maybe:
> class.destruct(); <- destroy without init?
>
> Yeah that. I'll make a PR!
I had an in-depth discussion with Andrei about this at
https://github.com/dlang/druntime/pull/2115
He ultimately gave up on trying to explain it to me and created
his own PR here: https://github.com/dlang/druntime/pull/2126
It's be good to review that discussion, and perhaps weigh in on
#2126.
Mike
More information about the Digitalmars-d
mailing list