Bug 12700 – object.di still defined alias destroy clear
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2014-05-04T17:41:00Z
Last change time
2015-06-09T05:15:19Z
Assigned to
nobody
Creator
destructionator
Comments
Comment #0 by destructionator — 2014-05-04T17:41:11Z
// Scheduled for deprecation in December 2012.
// Please use destroy instead of clear.
alias destroy clear;
This means foo.clear() still calls destroy, something very easy to accidentally do.
Comment #1 by issues.dlang — 2014-05-05T03:07:19Z
It was forgotten for too long (probably because it wasn't in the src directory - I don't remember why exactly - regardless, it was my fault). It has recently been actually deprecated and marked for removal in October (which may or may not be a bit quick after it was actually deprecated, but at least it's deprecated now), so it will now complain when you use it (though those changes are probably only on git master at this point). So, it's now moving further down the deprecation path in spite of the fact that I had missed it.
Comment #2 by schveiguy — 2015-04-03T14:38:46Z
It has been removed in HEAD, so this can be closed