How std.getopt would look with type functions
Stefan Koch
uplink.coder at googlemail.com
Sun May 24 07:06:31 UTC 2020
On Sunday, 24 May 2020 at 03:43:58 UTC, Adam D. Ruppe wrote:
> 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).
Yes but that's no reason to not show how it would look?
More information about the Digitalmars-d
mailing list