static immutable AAs documentation
Luís Marques
luis at luismarques.eu
Fri Dec 15 03:49:53 UTC 2017
The documentation for AAs gives out this example
(<https://dlang.org/spec/hash-map.html#static_initialization>):
immutable long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
unittest
{
assert(aa["foo"] == 5);
assert(aa["bar"] == 10);
assert(aa["baz"] == 2000);
}
This isn't actually supported:
<https://issues.dlang.org/show_bug.cgi?id=6238>
<https://issues.dlang.org/show_bug.cgi?id=1578>
Given how long this limitation has persisted, wouldn't it be best
to remove that section from the documentation?
More information about the Digitalmars-d
mailing list