Are named variadic arguments possible?
Jacob Carlborg
doob at me.com
Wed Jan 6 04:46:25 PST 2010
On 1/5/10 08:50, Alex wrote:
> Is it possible, using templates, tuples, or some other mechanism, to implement named variadic arguments in D?
>
> For example, I'd like to be able to do something like...
> foo( 2,&bar, age : 10, status : "down");
>
> and so forth.
You can try and see if you can modify this to do what you want:
http://tango.pastebin.com/m2ae0ea3e it's named arguments but not variadic.
More information about the Digitalmars-d-learn
mailing list