myFunc(U:MyClass...)(U args)

bearophile bearophileHUGS at lycos.com
Thu Aug 21 15:22:59 PDT 2008


tsalm:
> I've got another problem with template. I want to do this :
>   void myFunc(U:MyClass...)(U args) {  }

This may be related to "Typesafe Variadic Functions":
http://www.digitalmars.com/d/1.0/function.html

So you may try this syntax:
void myFunc(MyClass[] args...) {  }

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list