Why do you continue to use D?
12345swordy
alexanderheistermann at gmail.com
Tue Jun 9 18:57:41 UTC 2020
On Tuesday, 9 June 2020 at 18:47:13 UTC, Timon Gehr wrote:
> On 6/9/20 8:12 PM, 12345swordy wrote:
>> On Tuesday, 9 June 2020 at 16:43:21 UTC, Timon Gehr wrote:
>>> On 09.06.20 17:45, 12345swordy wrote:
>>>>[...]
>>> I don't think that's necessary. Destructors should just
>>> inherit the base class destructor's attributes, then
>>> `destroy` can annotate itself with appropriate attributes.
>>>
>>> Also see: https://issues.dlang.org/show_bug.cgi?id=20914
>> Which in order for that to happen it needs to be virtual
>> function, not a static function.
>
> No, that's also not necessary. You can inherit attributes
> without making the function defined by the destructor function
> declaration virtual. __xdtor still needs to be virtual, but
> that appears to be the case already.
How exactly? By having attributes themselves check the attributes
for the parent class of the deconstructor?
More information about the Digitalmars-d
mailing list