Why are class methods not allowed to call cons/destructors?
kinke
noone at nowhere.com
Sat Jul 31 14:08:58 UTC 2021
On Saturday, 31 July 2021 at 13:59:46 UTC, Tejas wrote:
> On Saturday, 31 July 2021 at 13:57:40 UTC, kinke wrote:
>> This is possible via:
>> ```
>> __dtor();
>> super.__dtor();
>> ```
>
> WHOO YEAH!!!
> THANK YOU SO MUCH :D
Heh you're welcome. Note that you'll probably want `__xdtor()`,
which also destructs fields with dtor (no base fields -
`super.__xdtor()` for the immediate base class etc.).
More information about the Digitalmars-d-learn
mailing list