Overloading based on named arguments is possible, here’s how

Martin Tschierschke mt at smartdolphin.de
Wed May 8 11:24:54 UTC 2024


On Wednesday, 8 May 2024 at 04:46:26 UTC, cc wrote:
[...]
> X(x: 1); // X(int x) called with 1
> X(y: 2); // X(int y) called with 2
> ```

Cool!


More information about the Digitalmars-d mailing list