Implicit .dup inserting into AA keyed on char[], or not?

Nick Sabalausky a at a.a
Thu Mar 3 17:54:46 PST 2011


In D2, if you do this:

void foo(char[] key)
{
    bool[char[]] aa;
    aa[key] = true;
}

Does that last line allocate a duplicate of key's data?




More information about the Digitalmars-d-learn mailing list