D's Destructors are What Scott Meyers Warned Us About

Manu turkeyman at gmail.com
Wed May 23 23:36:33 UTC 2018


On 23 May 2018 at 16:34, Rubn via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Wednesday, 23 May 2018 at 22:47:21 UTC, sarn wrote:
>>
>> On Wednesday, 23 May 2018 at 02:13:13 UTC, rikki cattermole wrote:
>>>
>>> I would consider the current state with classes a bug.
>>> So ticket please, it should not require a DIP to change (although Walter
>>> may disagree).
>>
>>
>> Unfortunately, the way __dtor and __xdtor work for classes can't be
>> changed without the risk of breaking code.  (Even if the current behaviour
>> is broken, users might be working around it.)
>
>
> With the recent poll that was taken, D users seem to be alright with fixing
> problems if it means breaking code. Especially if it is to fix something
> that is broken to begin with. Not fixing something that's broken because
> people might have workarounds implemented for it seems kind of backwards to
> me.

I'm actively working on this stuff at the moment... if you guys can
articulate what is *broken*, then I will look at it.


More information about the Digitalmars-d mailing list