How std.getopt would look with type functions

Adam D. Ruppe destructionator at gmail.com
Sun May 24 03:43:58 UTC 2020


On Sunday, 24 May 2020 at 00:23:31 UTC, Stefan Koch wrote:

>
> Ah wrong args[]... have to go into the template parameter list.
> At least for now. it would look more like
> getOps!(arg("length", length),
>        arg("file", data),
>        arg("verbose", verbose),
>        arg("color", color, "Information about this 
> color"))(args);

We can do this today (just the template args would be implicit).



More information about the Digitalmars-d mailing list