Keyword arguments / Named parameters library implementation

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Mar 19 12:21:20 PDT 2012


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));


More information about the Digitalmars-d mailing list