https://issues.dlang.org/show_bug.cgi?id=20379
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Steven Schveighoffer <[email protected]> --- I think this needs to be marked invalid. An AA can provide reference to its values, which is why removing the key doesn't destroy the value. The same thing happens for dynamic arrays. Destroy the array, and it basically just sets it to null. Same thing with a pointer, destroying it just sets it to null. While maybe not desirable, it is consistent behavior. --
