Bug 8728 – Allow optional message for @disable

Status
REOPENED
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-26T09:34:32Z
Last change time
2024-12-13T18:01:32Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Andrej Mitrovic
Moved to GitHub: dmd#17557 →

Comments

Comment #0 by andrej.mitrovich — 2012-09-26T09:34:32Z
@deprecated will soon have an optional message Issue 5481 && https://github.com/D-Programming-Language/dmd/pull/463 I think we could use this for @disable too. E.g. when a user upgrades a library and some code ends up calling a method which is now disabled it would be nice if there was an error message stating why the method has become disabled.
Comment #1 by monarchdodra — 2013-06-28T01:13:13Z
Comment #2 by andrej.mitrovich — 2014-01-26T04:06:19Z
*** Issue 11999 has been marked as a duplicate of this issue. ***
Comment #3 by code — 2014-10-04T20:19:48Z
Just wanted to file this too. Would help to improve error messages.
Comment #4 by andrei — 2016-10-15T17:17:07Z
Yay
Comment #5 by john.loughran.colvin — 2016-10-15T22:32:58Z
Yay? Was there a pull request that implemented this?
Comment #6 by andrei — 2016-10-16T01:03:37Z
Ehm, I conflated @disable with @deprecated.
Comment #7 by robert.schadek — 2024-12-13T18:01:32Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17557 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB