May 20, 2022 [Issue 23129] New: object.destroy doesn't consider initialize=false on D classes | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23129 Issue ID: 23129 Summary: object.destroy doesn't consider initialize=false on D classes Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: dkorpel@live.nl ``` class C { int x; } void main() { C inst = new C(); inst.x = 123; destroy!false(inst); // don't initialize assert(inst.x == 123); // fails, inst.x was still set to 0 } ``` -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply