DIP6: Attributes
Frank Benoit
keinfarbton at googlemail.com
Tue Aug 4 12:56:21 PDT 2009
Andrei Alexandrescu schrieb:
> Ary Borenszweig wrote:
>> call!(foo)(5, "hello")
>>
>> with varaidic args?
>
> Well some don't like to need to remember the order of arguments.
>
> Andrei
Assigning the argument by name instead of order has two other benefits,
i can think of...
1. on the call side, it is documented for what the given values are used.
2. it may be possible to let all parameters have default values and for
example just give a value for the last parameter. This is not possible
with just the parameter order.
More information about the Digitalmars-d
mailing list