Another attempt at passing keyword-arguments to functions
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Mon Nov 9 06:36:24 PST 2015
On Monday, 9 November 2015 at 12:11:31 UTC, Tomer Filiba wrote:
> What do you guys think?
Clever, nice code.
You could also do something similar with a delegate.. like rig it
so
KW!f((args) {
args.foo = "bar";
args.bar = 12;
});
calls it in a similar way. There, you'd just pass the args
pointer to the function rather than through the opDollar.
But either way, nice usage of things.
More information about the Digitalmars-d
mailing list