www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14652] New: Ddoc generates wrong documentation for

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

          Issue ID: 14652
           Summary: Ddoc generates wrong documentation for parameterized
                    alias definition
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

/**
xyz
*/
alias StackFront(size_t stackSize, Allocator) =
    FallbackAllocator!(
        InSituRegion!(stackSize, Allocator.alignment,
            hasMember!(Allocator, "deallocate")
                ? Yes.defineDeallocate
                : No.defineDeallocate),
        Allocator);

The documentation entry lists this as the declaration:

template StackFront(size_t stackSize, Allocator)

which is not adequate.

--
Jun 04 2015