http://d.puremagic.com/issues/show_bug.cgi?id=5481
Summary: Support deprecated("message")
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Don <[email protected]> 2011-01-24 07:59:52 PST ---
A simple feature which has been discussed in the ng but not yet added to
Bugzilla:
An optional message should be added to 'deprecated'. This can provide a
detailed explanation of how the code should be updated (replacing the ugly
usage of pragma(msg), which doesn't even work properly).
deprecated("Use newStuff instead.")
{
int oldStuff;
}
int newstuff;
void main()
{
oldStuff = 6;
}
---> Should give:
bug.d(15): oldStuff is deprecated
Use newStuff instead.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------