AA specialization not works

JDavidLS jdavidls at gmail.com
Sat Sep 22 15:25:38 PDT 2007


string[] na = ["yo","tu","el"];

string[string] aa;
aa["yo"] = "qwer";
aa["tu"] = "qwer";
...

string toString(T)(Tt) { ...}           //OK
string toString(T:T[])(Tt) { ... }     // WORKS

string toString(T:T[C], C)(Tt) { ... }     // NOT WORKS
string toString(T:V[C], V,C)(Tt) { ... }     // NOT WORKS
string toString(V,C,T:V[C])(Tt) { ... }     // NOT WORKS

As I can use the type of key of an associative Array in a function?






More information about the Digitalmars-d mailing list