Getting a template parameter list

Simen Kjaeraas simen.kjaras at gmail.com
Tue Jul 24 02:08:42 PDT 2012


On Tue, 24 Jul 2012 08:08:19 +0200, Philippe Sigaud  
<philippe.sigaud at gmail.com> wrote:

> class C(T,U) {}
>
> // does not work on class C
> template dissect1(T : Name!(Params), alias Name, Params...) {}
> // works on class C
> template dissect2(T : Name!(Param1, Param2), alias Name, Param1, Param2)  
> {}
>
> No ambiguity. But hell, a lot less power also.
>
> Sigh... I'll go back to parsing a .stringof representation.

I went ahead and filed a new bug[1], and (90) minutes after, Kenji Hara  
responded
this is already implemented for 2.060.

[1]: http://d.puremagic.com/issues/show_bug.cgi?id=8420
-- 
Simen


More information about the Digitalmars-d mailing list