void myFunc(T: !=int)(T value)

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Aug 22 05:33:23 PDT 2008


-------------------------------------------
"tsalm" <tsalm at free.fr> wrote in message 
news:op.ugacfwj7010shu at papillon.lan...
Hello,

I want to do something like this :

class MyClass
{
   void myFunc(int intValue)
   {
     /* Do something with this int */
   }

   void myFunc(T: !=int)(T valueNotInt)
   {
     /* valueNotInt can not be an int */
   }
}

Thanks in advance,
TSalm
-------------------------------------------

void myFunc(T: int)(int intValue) {}
void myFunc(T)(T notIntValue) {}

:) 




More information about the Digitalmars-d-learn mailing list