[Issue 5481] New: Support deprecated("message")

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 24 08:01:55 PST 2011


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 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: -------


More information about the Digitalmars-d-bugs mailing list