I have a function void foo(...) and a function void bar(...) and I want to call bar from foo, in a way that bar receives the same variable argument list than foo.
Is that possible in D?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you use templates yes
the
agets expanded that compile time to what arguments it was called withyou can also slice[] off some arguments, or you add an argument to the list