[Issue 3566] scoped class's member available after delete
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 05:04:46 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=3566
Mathias LANG <pro.mathias.lang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |pro.mathias.lang at gmail.com
Resolution|--- |WONTFIX
--- Comment #1 from Mathias LANG <pro.mathias.lang at gmail.com> ---
There would be no way to ensure this, since it would be trivial to just copy
the reference to the class and use that instead.
In general, accessing `delete`d ressources is UB. Just like accessing `free`d
memory.
Moreover, `delete` have been deprecated, so I'm going to close this as WONTFIX.
--
More information about the Digitalmars-d-bugs
mailing list