On Saturday, 3 August 2013 at 14:58:49 UTC, bearophile wrote:
Gabi:

 //HOW TO pass F1(..) the args we were called with ?


import std.stdio;

void f1(Args...)(Args args) {
    foreach (arg; args)
        arg.writeln;
}

void f2(Args...)(Args args) {
    f1(args);
}

void main() {
    f2(10, "hello", 1.5);
}


Bye,
bearophile

Thanks but how do I do this for variadic functions (using _arguments and friends) ? Not variadic templates.. More specifically I want to know at runtime the type of each parameter

Reply via email to