How to call other variadic function with the same arguments?
Bastiaan Veelo
Bastiaan at Veelo.net
Sun Feb 24 15:53:34 UTC 2019
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(...) {
> // ...
> }
I don’t know if you can, but if at least g is a variadic template
function, you can:
https://run.dlang.io/is/fhxZuV
Bastiaan.
More information about the Digitalmars-d-learn
mailing list