Classes in D with betterC

Stanislav Blinov stanislav.blinov at gmail.com
Sat Nov 20 06:15:24 UTC 2021


On Saturday, 20 November 2021 at 05:37:42 UTC, rikki cattermole 
wrote:
> And then there are issues such as 
> https://issues.dlang.org/show_bug.cgi?id=21416 which killed off 
> any chance of me using them internally.

...and the implementation, as presented, falls apart due to not 
forwarding arguments correctly. Not insurmountable, of course, 
although `forward` really should be an intrinsic and not a 
library function.

And due to looking for a `__dtor` instead of `__xdtor`. And due 
to the fact that ya can't use the proposed `destroy` function 
with a reference to base class and still call the destructor of 
derived class correctly, let alone infer attributes correctly. 
And due to it trusting the `pureFree` when it shouldn't.

Can't see anything news-worthy here. This has been possible for 
ages, and is still limited to wazoo by classes being married to 
druntime, pessimized by lack of proper forwarding in the 
language, and can't be @safe.


More information about the Digitalmars-d-announce mailing list