What features of D you would not miss?

RazvanN razvan.nitu1305 at gmail.com
Fri Sep 16 09:59:10 UTC 2022


On Thursday, 15 September 2022 at 13:43:01 UTC, Dennis wrote:

> - `this(this)` (postblit is superseded by copy constructor, 
> though there are still a lot of bugs)

There are not a lot of bugs, there are exactly 5 bugs that affect 
copy constructors exclusively (there are others that manifest in 
conjunction with a copy constructor, but those manifested with 
the postblit as well):

https://issues.dlang.org/show_bug.cgi?id=22614 (arguably, not a 
problem of copy constructors - see comments in bug report)
https://issues.dlang.org/show_bug.cgi?id=22239 (not obvious how 
to fix)
https://issues.dlang.org/show_bug.cgi?id=21613 (PR submitted)
https://issues.dlang.org/show_bug.cgi?id=20876 (doesn't 
necessarily block migration, it's just that the error message is 
not ideal)
https://issues.dlang.org/show_bug.cgi?id=20208 (affecting c++ 
interoperability)

 From the list above, the only issue that is blocking the 
transition from postblit to copy constructor is 22239. So there 
is exactly 1 bug that impedes the deprecation of postblits in 
favor of the copy constructor, so please do not spread fear of 
using the copy constructor.



More information about the Digitalmars-d mailing list