Make alias parameter optional?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Feb 25 17:16:11 PST 2012


On 2/25/12, Ali Çehreli <acehreli at yahoo.com> wrote:
> Apparently template parameters
> with default values need not be at the end of the template parameter list

Well it would make variadic templates rather hard to use if this was illegal:

void print(bool pretty = false, T...)(T args) { }
void main() { print(1, "two", 3.0); }


More information about the Digitalmars-d-learn mailing list