https://issues.dlang.org/show_bug.cgi?id=13628
anonymous4 <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |spec --- Comment #6 from anonymous4 <[email protected]> --- In the meantime behavior was changed for simplicity or something like that, now unqualified destructor is always called on unqualified instance, like this: struct SecureString { char[] secret; ~this() { secret[]=0; } } int main() { immutable s=immutable SecureString("aa"); return 0; } --
