www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12081] New: Warn against, and then deprecate class allocators


           Summary: Warn against, and then deprecate class allocators
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc

--- Comment #0 from bearophile_hugs eml.cc 2014-02-05 04:11:40 PST ---
According to the docs class allocators are deprecated:

But this code gives no warnings nor deprecation errors, that I suggest to

class Foo {
    new(size_t sz) { return null; }
    delete(void* p) {}
void main() {}

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