Bug 11999 – @disable should also offer an optional message.
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-25T17:10:00Z
Last change time
2014-01-26T04:06:17Z
Assigned to
nobody
Creator
rswhite4
Comments
Comment #0 by rswhite4 — 2014-01-25T17:10:16Z
deprecated already has an optional message, so I suggest even @disable should provide this option:
----
struct A {
@disable("unique pointer aren't copyable")
this(this);
}
----
Comment #1 by andrej.mitrovich — 2014-01-26T04:06:17Z
*** This issue has been marked as a duplicate of issue 8728 ***