www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5196] New: ddoc does not show modifiers on template functions such as pure or nothrow

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: jmdavisProg gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg 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: -------
Nov 09 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5196


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-11-09 13:42:08 PST ---
*** This issue has been marked as a duplicate of issue 3445 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2010