MLT:
> Why is that?
I think this is the right syntax (I am using Phobos on D1):
import std.stdio: writefln;
void main() {
int[5][string] aa = ["a": [1, 2, 3, 4, 5]];
aa["b"][] = aa["a"]; # line 5
writefln(aa);
}
But it gives an:
Error: ArrayBoundsError temp(5)
It looks like a bug. St
I am just learning D, and playing around. So I have no good reason why one
would do the following, but I also don't understand why it doesn't work...
I was trying to make an associative array with int[5] as the value type. That
didn't work properly. int[] did, and I don't understand why.
Here is