Skipping function parameters with default value
tcak via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 21 14:08:01 PDT 2015
Does D has an aim to be convertible back to C code easily?
I want to define a function as follows:
mysqlConnect( string host="localhost", string username, string
I was expecting that I could call the function as follows:
mysqlConnect( , "root" );
But, it neither allows me to define the function in that way, or
allows me to call the function in that way even if I give a
default value to username parameter. Would it be possible to
allow a syntax as above?
This could open the doors to set parameters by giving parameter
name as well.
More information about the Digitalmars-d