Does D 2.110 support named parameters?
Brother Bill
brotherbill at mail.com
Sat Dec 6 01:32:14 UTC 2025
Does D 2.110 support named parameters, and if so, what
configuration is necessary,
such as -preview=all
The following code doesn't compile on Window 11.
Is there D syntax that does work?
```
void main() {
string[string] dictionary = [
"blue": "mavi", "red": "kırmızı", "gray": "gri"
];
}
// Want to have default keySeparator by ": "
printAA("Color Dictionary", aa, commaSeparator: "\n");
void printAA(string title, string[string] aa, string keySeparator
= ": ", string commaSeparator = ", ")
{
// ...
}
```
More information about the Digitalmars-d-learn
mailing list