[Issue 15247] New: Object's destructor should be pure @safe nothrow @nogc
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Oct 25 06:51:32 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15247
          Issue ID: 15247
           Summary: Object's destructor should be pure @safe nothrow @nogc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: andrei at erdani.com
The destructor of Object does nothing so it should not be maximally
conservative (as is today). User-defined classes should inherit the pure @safe
nothrow @nogc attributes for destructor.
If a user-defined class includes fields that have destructors, the generated
destructor will also generate the attributes appropriately.
--
    
    
More information about the Digitalmars-d-bugs
mailing list