On Sunday, 24 February 2019 at 13:09:15 UTC, Victor Porton wrote:
Let f be a variadic function:

Result f(...);

How to implement variadic function g which calls f with the same arguments as one it receives?

Result g(...) {
  // ...
}

void f(A...)(A a)
{
    foreach(t; a)
        writeln(t);
}

void g(A...)(A a)
{
    f(a);
}

g(1, 2, 3);

Reply via email to