https://issues.dlang.org/show_bug.cgi?id=14108
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #3 from Walter Bright <[email protected]> --- (In reply to Timothee Cour from comment #2) > But why can't a char[] be used here though? Seems to me it would be safe to > allow that? Because the associative array does not store a copy of the key, it stores the key. If the key is mutable, then it could change, and the associative array's data structure then becomes corrupt. --
