[Issue 9695] New: Ddoc should emit enum member initializers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 11 21:19:14 PDT 2013


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

           Summary: Ddoc should emit enum member initializers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ddoc
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-11 21:19:11 PDT ---
Example:

module test;
/** */
enum E : char
{
    /** */
    one = '1',

    /** */
    two = '2',
}

$ dmd -D -o- test.d

The initializers are not present, but for documentation purposes they really
should be.

The question is whether to do it for all initializers, or only for
user-provided initializers (if that's even possible to do at the ddoc
generation stage).

-- 
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