As discussed in DConf2015: Python-like keyword arguments
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 29 21:16:06 PDT 2015
On Fri, 29 May 2015 14:27:02 +0200, Jacob Carlborg wrote:
i can do even more cool things like this now:
void test (string a, string b="wow", string c="heh") {
assert(b == "wow");
}
test(c: "cc", a: "aa");
the long-wanting feature of "use defaults for some args". i like it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150530/2278a632/attachment.sig>
More information about the Digitalmars-d
mailing list