How do you allocate an associative array on the heap?
----
void main(){
        alias A=int[string];
        auto b=new A;
}
----
$ rdmd test
test.d(4): Error: new can only create structs, dynamic arrays or class objects, not int[string]'s
Failed: ["dmd", "-v", "-o-", "test.d", "-I."]

Reply via email to