Associative array key changes
John Demme
me at teqdruid.com
Mon Mar 20 04:54:56 PST 2006
Sean Kelly wrote:
> Erik Rasmussen wrote:
>>
>> Maybe the lesson here is just that you should never change the values of
>> keys inside associative arrays because the behavior will be hard to
>> predict...
>
> That's it. If you change a key value in place you must rehash the AA
> before it can be used. I don't think there's any way to do this using
> the built-in AA functionality, though it would be easy enough to add.
>
>
> Sean
Actually, AAs have a .rehash method.
More information about the Digitalmars-d-learn
mailing list