[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 18 12:38:29 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=2834
--- Comment #22 from Orvid King <blah38621 at gmail.com> ---
Ok, so, to give an update on this issue, I've now implemented the invoking of
destructors on heap allocated structs, as well as arrays of structs. It
required a fix to a bug in DMD with the delete operator, as well as a change
(which I still need to make), to the test suite so that it doesn't allocate in
a destructor.
The DMD PR is here:
https://github.com/D-Programming-Language/dmd/pull/3727
And the druntime PR, as mentioned farther up, is here:
https://github.com/D-Programming-Language/druntime/pull/864
--
More information about the Digitalmars-d-bugs
mailing list