https://d.puremagic.com/issues/show_bug.cgi?id=5109


[email protected] <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #3 from [email protected] <[email protected]> 2014-01-09 
03:31:58 PST ---
D is actually able to do something like partial templates.
Here is an example that works:

struct P(A...)
{
    alias Args = A; 
}

alias  P!int P1;
P1 p1; // P!int

alias P!(P1.Args,long) P2;
P2 p2; // P!(int, long)


void main() {
    writeln(typeid(P2));  // Output: main.P!(int, long).P
}

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

Reply via email to