AA's and mutating keys

Steven Schveighoffer schveiguy at yahoo.com
Wed Oct 31 07:43:28 PDT 2007


There isn't any documentation that I can tell on the Arrays page that 
determines whether a mutating key can be used for an AA.  For example, if I 
use char[] as a key:

char[][char[]] map;

char[] keyvalue = "hello";

map[keyvalue] = "world";
keyvalue[] = "cello";

char[] *val = "hello" in map;

So does val get set to non-null?

-Steve 




More information about the Digitalmars-d-learn mailing list