On Wed, 07 Dec 2011 08:59:32 +0100, raojm <ra...@91ne.com> wrote:

Is D associative array  thread safe, and  will it relocate memory when
add or delete a value?

Where I can find the implemention.

No it's not, and yes it has to relocate memory.
It's working as a hashtable not a binary tree, so all
pointers will be invalidated by adding/removing.
https://github.com/D-Programming-Language/druntime/blob/master/src/rt/aaA.d

Reply via email to