digitalmars.D.bugs - [Issue 15247] New: Object's destructor should be pure safe nothrow
- via Digitalmars-d-bugs (19/19) Oct 25 2015 https://issues.dlang.org/show_bug.cgi?id=15247
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 puremagic.com Reporter: andrei 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. --
Oct 25 2015