Does D 2.110 support named parameters?
Brother Bill
brotherbill at mail.com
Sat Dec 6 01:49:28 UTC 2025
On Saturday, 6 December 2025 at 01:37:55 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> It compiles with dmd 2.109.1 if other problems are solved.
>
> ```d
> void main() {
> string[string] dictionary = [
> "blue": "mavi",
> "red": "kırmızı",
> "gray": "gri"
> ];
>
> printAA("Color Dictionary", dictionary, commaSeparator:
> "\n");
> }
>
> void printAA(string title, string[string] aa,
> string keySeparator= ": ",
> string commaSeparator = ", ") {
> }
> ```
The problem was using one name here and a different name there.
Thanks for looking at it.
Nothing special is needed for it to run.
More information about the Digitalmars-d-learn
mailing list