[Issue 9433] New: Deprecate delete
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 31 03:59:35 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9433
Summary: Deprecate delete
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-01-31 03:59:34 PST ---
class Foo {}
void main() {
auto f = new Foo;
delete f;
}
DMD 2.062alpha compiles that code with no warnings or errors.
But I expect a message like:
temp.d(5): Deprecation: use of delete is deprecated; use destroy (and
core_memory.GC.free) instead.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list