Keyword arguments / Named parameters library implementation

Matthias Walter xammy at xammy.homelinux.net
Tue Mar 20 01:13:09 PDT 2012


On 03/19/2012 08:21 PM, Andrej Mitrovic wrote:
> On 3/19/12, Matthias Walter <xammy at xammy.homelinux.net> wrote:
>> Hi,
>>
>> I've written a small module (at the moment called utils.keywordargs)
>> which simulates keyword arguments (aka named parameters).
> 
> Cool. A small tip (in case you didn't already know):
> 
> You can use allSatisfy from std.typetuple when checking a single
> constraint on multiple parameters: static
> assert(allSatisfy!(isKeywordArgument, H, V));

Didn't know that - thanks a lot!




More information about the Digitalmars-d mailing list