As far I know maps in D have value semantics.
D associative arrays are reference types.
Internally, they are represented as a pointer to an implementation-defined data structure. (Note that if the AA is null
, it does not act like a reference type, as adding the first member will instantiate it.)