[Issue 11949] Warning and later deprecation message for usage of delete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 20 21:41:46 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11949


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #9 from Jonathan M Davis <jmdavisProg at gmx.com> 2014-01-20 21:41:29 PST ---
There really is no question that delete is going to be removed. It's been
discussed a number of times before, and the decision was most definitely that
it's going away. The same functionality can be achieved through library
functions (e.g. GC.malloc or C's malloc plus emplace and GC.free or C's free),
so we don't need it in the language itself in order to get the functionality,
and having it in the language encourages its use, when its use should be
discouraged (the functionality should still be there for those who really
needed, but it shouldn't be in your average D program). Andrei in particular
feels very strongly that delete has no business in the core language. If
anything, it should have been removed long since. AFAIK, the only reason that
it's still around is that none of the compiler devs have gotten around to
removing it.

The best that anyone who really wants delete to stay is going to get is a delay
in its removal. And such a delay would just increase the amount of code that
breaks when it happens. So, it's in our best interest to deprecate it and put
it on the path to removal ASAP rather than arguing over what's already been
decided.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list