On Tuesday, 6 November 2012 at 17:48:55 UTC, PlatisYialos wrote:
To really give a stark example:
-------------------------------
void compiles() {
immutable(char)[][immutable(char)[]] aMap;
immutable(char)[] a = ['a'];
immutable(char)[] b = ['b'];
aMap[a] = b;
}
void doesnotcompile() {
immutable(char)[immutable(char)] aMap;
immutable(char) a = 'a';
immutable(char) b = 'b';
aMap[a] = b;
}
-------------------------------
I don't see what I'm doing wrong. Does the compiler give special
treatment to strings?