default values for inout parameters

Charlie charlies at nowhere.com
Tue Dec 5 15:39:39 PST 2006


The following fails with : Error: "" is not an lvalue

void f( inout char [] x = "" ){ }

void main ()
{
   f();
}


Why is this not allowed ?



More information about the Digitalmars-d-learn mailing list