Is there a nice syntax to achieve optional named parameters?

Matheus stop at spam.com
Thu Jan 17 19:57:39 UTC 2019


On Thursday, 17 January 2019 at 16:55:33 UTC, SrMordred wrote:
> Yes, but there is a mistake there:
> alias is part of the template:
>
> foo(alias x)(){} //note extra parens
>
> than u call like an template:
>
> foo!"a"; //equivalent = foo!("a")();
> foo!1;

I see now and thanks.

Matheus.


More information about the Digitalmars-d-learn mailing list