www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9876] New: deprecated is not announced

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9876

           Summary: deprecated is not announced
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com


--- Comment #0 from SHOO <zan77137 nifty.com> 2013-04-04 07:35:19 PDT ---
This code should announce deprecation:
-------
alias a b;
deprecated enum a = 0;
-------

It is hoped that the following message is announced:
-------
$ dmd -c main
main.d(1): Deprecation: variable main.a is deprecated

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 04 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9876


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-04-04
08:31:57 PDT ---
(In reply to comment #0)
 This code should announce deprecation:
 -------
 alias a b;
 deprecated enum a = 0;
 -------
 
 It is hoped that the following message is announced:
 -------
 $ dmd -c main
 main.d(1): Deprecation: variable main.a is deprecated
However I think this should be silent: ------- deprecated alias a b; deprecated enum a = 0; ------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 04 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9876



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-04-05
12:43:46 PDT ---
(In reply to comment #1)
 However I think this should be silent:
Ah nevermind, the OP sample is a forward reference issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 05 2013