[Issue 18417] Make const and immutable postblit constructors illegal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 14 14:51:39 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18417
--- Comment #6 from RazvanN <razvan.nitu1305 at gmail.com> ---
PR : https://github.com/dlang/dmd/pull/8032
The PR makes it illegal to declare a postblit const/immutable/shared, however,
it is still possible to make a postblit const/immutable/shared by appending a
qualifier to the struct:
immutable struct B
{
this(this) {}
}
There might be code in the wild which does this but never actually uses the
postblit.
--
More information about the Digitalmars-d-bugs
mailing list