[RFC] Fix `object.destroy` problem
Denis Shelomovskij
verylonglogin.reg at gmail.com
Wed Nov 7 13:57:07 PST 2012
08.11.2012 1:20, Denis Shelomovskij пишет:
> IMHO we have a huge design problem with `object.destroy`.
>
> Please, carefully read "Now the worst thing with `object.destroy`"
> section of the pull 344 about it:
> https://github.com/D-Programming-Language/druntime/pull/344
Just my own post:
The first time I looked at `destroy` implementation (yes, I almost
always read sources as documentation often gives a small part of needed
information and in this particular case it really gives nothing) I
considered it strange. From the second look when I completely understood
what is it really doing I was in shock how such inconsistent and
dangerous thing could ever be made. So finally I found time and did the
pull. And it was obvious that everybody understand the problem or, if
someone hasn't already read `destroy` implementation, he will see the
diff and will agree in the moment.
But as it isn't the first time I think so, I provided a detailed
description about [obvious] `destroy` problems. A response was about:
"What is the problem with `destroy`? Why are you doing it?".
So here is this NG thread and, probably, I will hear even more "Why are
you doing it?" questions which I don't know how to answer as I already
listened all my reasons in pull description and can't add a lot. And
probably will never understand why people asking such questions doesn't
argue their opinion by proofing that my arguments are incorrect or
irrelevant.
--
Денис В. Шеломовский
Denis V. Shelomovskij
More information about the Digitalmars-d
mailing list