Thread overview
[Issue 9876] New: deprecated is not announced
Apr 04, 2013
SHOO
Apr 04, 2013
Andrej Mitrovic
Apr 05, 2013
Andrej Mitrovic
April 04, 2013
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: -------
April 04, 2013
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: -------
April 05, 2013
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: -------