digitalmars.D.learn - Array Vararg Template Paremeters
- Q. Schroll (8/8) Oct 30 2019 For a function, one can have a vararg parameter at the end like
For a function, one can have a vararg parameter at the end like
this:
int sum(int[] ar ...) { /* code */ }
But for templates, such a declaration is an error. Is there a
specific reason why?
I know I can do it and ensure all the template parameters are
values and are convertible to the desired type. However, it's
easier to just use an array.
Oct 30 2019








Q. Schroll <qs.il.paperinik gmail.com>