Associative array key changes
Sean Kelly
sean at f4.ca
Mon Mar 20 10:09:21 PST 2006
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
More information about the Digitalmars-d-learn
mailing list