[Issue 11337] New: Ddoc ignores methods in static else block

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 24 02:03:16 PDT 2013


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

           Summary: Ddoc ignores methods in static else block
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: joseph.wakeling at webdrake.net


--- Comment #0 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-10-24 02:03:14 PDT ---
Created an attachment (id=1283)
Example code illustrating the bug: ddoc entry in a static else block is not
used

In the event that a static if {} else {} block is used to determine what
methods belong to a struct/class, Ddoc will ignore the documentation for
methods defined in the if {} block.

The attached code shows 2 different classes: one where two different functions
are defined depending on a static if/else block, another where the same effect
is achieved with two static if blocks (static if (cond) { ... } static if
(!cond) { ... }).

In the first case, the second function is not picked up by ddoc; in the second,
it is.

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