Bad AA behavior
Serg Kovrov
kovrov at no.spam
Tue Dec 26 16:02:13 PST 2006
Kirk McDonald wrote:
> BCS wrote:
>> Furthermore, once the underling data is changed, the member can't be
>> accessed even to remove it.
>>
>> set.remove(set.keys[0]); // has no effect
>>
>> I'll admit that I don't known what to do with the object/struct case,
>> but I think the current behavior isn't good.
>
> And this is why dictionary keys are required to be immutable in Python
> (and numbers, strings, and tuples are all immutable types).
I have stepped on arrays-related rakes in D, oh-so-many times...
Wonder what Walter will comment on that one.
--
serg.
More information about the Digitalmars-d-bugs
mailing list