www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13272] New: [ddoc] Should merge docs for eponymous template

https://issues.dlang.org/show_bug.cgi?id=13272

          Issue ID: 13272
           Summary: [ddoc] Should merge docs for eponymous template with
                    single public member
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: hsteoh quickfur.ath.cx

The example is from std.parallelism:
------
/**
 ...
 */
final class TaskPool
{
    ///
    template amap(functions...)
    {
        /**
         ...
         */
        auto amap(Args...)(Args args)
            if (...)
        {
        }
    }
}
------

Currently, ddoc will output template amap(functions...) as a separate outer
layer, followed by the docs for amap(Args...)(Args args). It should merge the
two together since this is an eponymous template.

--
Aug 09 2014