Associative array key changes
Erik Rasmussen
i_am_erik at yahoo.com
Tue Mar 21 01:12:29 PST 2006
John Demme wrote:
> 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.
I know. And rehashing does nothing. Same results.
Erik
More information about the Digitalmars-d-learn
mailing list