Thread overview
[Issue 13059] Delete uses destructor rather than the delete operator
Jul 06, 2014
Orvid King
Aug 11, 2019
Mathias LANG
July 06, 2014
https://issues.dlang.org/show_bug.cgi?id=13059

bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc

--- Comment #1 from bearophile_hugs@eml.cc ---
(In reply to Orvid King from comment #0)
> if you define a destructor on a struct, allocate an instance of that struct on the heap, and then attempt to use the delete keyword to

The delete keyword is deprecated, don't use it.

--
July 06, 2014
https://issues.dlang.org/show_bug.cgi?id=13059

--- Comment #2 from Orvid King <blah38621@gmail.com> ---
Unfortunately it's not officially deprecated, the only warning or deprecation error currently given by DMD for delete is for AAs. And it's not me that's using it, but rather sdtor.d in the dmd test suite.

--
August 11, 2019
https://issues.dlang.org/show_bug.cgi?id=13059

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #3 from Mathias LANG <pro.mathias.lang@gmail.com> ---
`delete` keyword is now officially deprecated.

--