[Issue 19092] __delete doesn't work with immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 18 11:50:43 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19092
--- Comment #5 from Mike Franklin <slavo5150 at yahoo.com> ---
> The issue is that the compiler deprecated `delete` and offers `__delete`as an alternative (with destroy/free as optional) and it doesn't work as advertised!
`delete` was deprecated in favor of `destroy` and `free`ing functions.
`__delete` was offered only as a last resort in case `destroy` was not
possible. If you're reaching for `__delete` first, you are not using D as it
was intended to be used and you are only going to create problems for yourself
and for the maintainers of D. Please avoid it, if possible.
--
More information about the Digitalmars-d-bugs
mailing list