On 4/13/13, gedaiu <[email protected]> wrote:
> looks great, but i cleared the array like this:
>
> values = null;

That's not clearing the array, that's clearing the reference to the
array. For example:

void main()
{
    int[int] hash;
    hash[1] = 1;

    auto hash2 = hash;  // new reference
    hash = null;  // clear the reference

    assert(1 in hash2);  // hash still exists
}

Reply via email to