www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10205] New: 'deprecated' '(' assignExpression ')' grammar is not documented

http://d.puremagic.com/issues/show_bug.cgi?id=10205

           Summary: 'deprecated' '(' assignExpression ')' grammar is not
                    documented
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: brian-schott cox.net


--- Comment #0 from brian-schott cox.net 2013-05-29 11:01:12 PDT ---
The syntax for providing a message with the deprecated attribute is not
documented on dlang.org. It is also not specified if this is valid when
deprecated is used as a storage class.

http://dlang.org/attribute.html#deprecated

The correct syntax seems to be (in ANTLR grammar form):

deprecated: 'deprecated' ('(' assignExpression ')')?
    ;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 29 2013