suggestion: default values

bobef adas at adasd.asdasd
Thu Apr 19 22:55:58 PDT 2007


It would be nice if there was some character like $ or something, if used as function argument, the default value for this argument to be used. What I mean is this:

void myfun(int a,char[] b,bool d=false,int e=55){}

void main()
{
    myfun(5,"5",$,$); // which should act like myfun(5,"5",false,55);
}



More information about the Digitalmars-d mailing list