[Issue 23938] spellchecker suggests `~this()` but it cant be used.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 29 12:46:15 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23938

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I think that this is a bit of a dilemma. __dtor is an internal symbol that
should not reach the user facing surface. Also, calling dtor like this is ugly.
However, I agree that suggesting a wrong method is worse.

Maybe the compiler should suggest the druntime destroy function?

--


More information about the Digitalmars-d-bugs mailing list