function default arguments depending on other arguments
Trass3r via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 17 15:00:05 PDT 2014
void foo(int a, int b = a)
{
}
is illegal in C++ because order of evaluation is undefined.
But since D defines the order to be left to right couldn't it
also allow this?
More information about the Digitalmars-d
mailing list