Make alias parameter optional?

Trass3r un at known.com
Sat Feb 25 10:54:34 PST 2012


void foo(T, T2, alias thing = (){})(T a, T2 b)
{
	thing();
}

void bar(){}

void main()
{
	foo!(int,int,bar)(1,2);
	foo(1,2);
}


More information about the Digitalmars-d-learn mailing list