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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 19 04:21:53 PST 2014


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

           Summary: Warning and later deprecation message for usage of
                    delete
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          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 2014-01-19 04:21:51 PST ---
I suggest to give a warning for the usage of delete, and later give a
deprecation message:


void main() {
    auto p = new int;
    delete p;
}

-- 
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