← Back to index
|
Original Bugzilla link
Bug 21172 – Disabling struct postblit should be deprecated?
Status
RESOLVED
Resolution
INVALID
Severity
minor
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-18T05:57:05Z
Last change time
2021-11-02T09:19:32Z
Assigned to
No Owner
Creator
Victor Porton
Comments
Comment #0
by porton — 2020-08-18T05:57:05Z
https://dlang.org/spec/attribute.html
"Disabling struct postblit makes the struct not copyable." but
https://dlang.org/spec/struct.html#StructPostblit
says struct postblits are deprecated. I suggest to add to the specification that disabling struct postblit is deprecated, too.
Comment #1
by pro.mathias.lang — 2020-08-18T06:10:29Z
That should go with the postblit deprecation, which is not in place yet, because the copy constructor implementation is not finished (there are some rough edges).