D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8728 - Allow optional message for @disable
Summary: Allow optional message for @disable
Status: REOPENED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords: bootcamp
: 11999 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-09-26 09:34 UTC by Andrej Mitrovic
Modified: 2024-12-13 18:01 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2012-09-26 09:34:32 UTC
@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 2 Andrej Mitrovic 2014-01-26 04:06:19 UTC
*** Issue 11999 has been marked as a duplicate of this issue. ***
Comment 3 Martin Nowak 2014-10-04 20:19:48 UTC
Just wanted to file this too. Would help to improve error messages.
Comment 4 Andrei Alexandrescu 2016-10-15 17:17:07 UTC
Yay
Comment 5 John Colvin 2016-10-15 22:32:58 UTC
Yay? Was there a pull request that implemented this?
Comment 6 Andrei Alexandrescu 2016-10-16 01:03:37 UTC
Ehm, I conflated @disable with @deprecated.
Comment 7 dlangBugzillaToGithub 2024-12-13 18:01:32 UTC
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