Variadic Functions
Learn about the variadic functions of D in this lesson.
We'll cover the following...
Despite appearances, default parameter values do not change the number of parameters that a function receives. For example, even though some parameters may be assigned their default values, the printAA()
function always takes four parameters and uses them according to its implementation:
void printAA(string title,
string[string] aa,
string keySeparator = ": ",
string elementSeparator = ", ")
On the other hand, variadic functions can be called with an unspecified number of arguments. We have already been taking ...