[Issue 5196] New: ddoc does not show modifiers on template functions such as pure or nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 9 12:50:17 PST 2010


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

           Summary: ddoc does not show modifiers on template functions
                    such as pure or nothrow
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-11-09 12:46:54 PST ---
A function like this:

long convert(string from, string to)(long value) pure nothrow
    if((from == "years" || from == "months") &&
       (to == "years" || to == "months"))
{
//...
}


ends up with a ddoc header like this:

long convert(string from, string to)(long value);


It's missing the pure and nothrow.

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