Forwarding varadic function arguments

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 3 16:50:33 PST 2016


//f is a File*
void fwrite(int line = __LINE__)(...)
{
         f.write("/*",line,"*/ ");
         f.write(_argptr); //prints e.g 7FFF5B055440
}
basically i want
fwrite("1 ","2\t","3\n");
to print
/*7*/ 1 2    3

do I have to iterate through _argptr


More information about the Digitalmars-d-learn mailing list