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

tsalm tsalm at free.fr
Thu Aug 21 15:50:36 PDT 2008


Le Fri, 22 Aug 2008 00:22:59 +0200, bearophile <bearophileHUGS at lycos.com>  
a écrit:

> 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

sorry, i missed it.
Thanks


More information about the Digitalmars-d-learn mailing list