Array to argument list

Simen Haugen simen at norstat.no
Thu Sep 11 06:39:55 PDT 2008


I have an array, but I want to send them one by one to a function that 
has variadic arguments. Is there a way to do this at runtime?

void p(A ...)(A Args) {}
p([1, 2, 3]); // I want this to become p(1, 2, 3) somehow...


More information about the Digitalmars-d-learn mailing list