Typesafe variadic functions requiring at least one argument

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 6 12:50:11 PDT 2016


I'd like to do something like this but it doesn't seem to be 
legal -

     void test(int[] ints...) if(ints.length){
         // stuff
     }

Not being able to specify this interferes with how I'd like to 
define my method overloads. What's the best way to achieve what 
I'm looking for?


More information about the Digitalmars-d-learn mailing list