I have a variadic D-style function foo(format, ...), which is a wrapper around writefln. I’d like to do something like this:
foo(format, <...>) {
//...
writefln(format, ...);
}
Essentially, passing on the ellipsis parameter(s) to writefln. I understand that this isn’t easy/possible in C/C++, but is there a way to accomplish this in D?
This will do it for you: