Do you know why this D2 program prints  const(char)[]  instead of  char[] ?

import std.stdio: writeln;
void main() {
    int[char[]] data = [cast(char[])"foo" : 1];
    foreach (key, val; data)
        writeln(typeid(typeof(key)));
}

Bye and thank you,
bearophile

Reply via email to