[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 4 11:27:35 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=2834

David Nadlinger <code at klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at klickverbot.at

--- Comment #16 from David Nadlinger <code at klickverbot.at> ---
(In reply to Orvid King from comment #15)
> Would making all the writeln's in http://dpaste.dzfl.pl/fbb4a15cda14 print
> out be an acceptable solution to this issue? (that is, making heap-allocated
> structs call their destructors)

As far as I can see, this would not necessarily test structs contained in other
structs/classes/arrays.

--


More information about the Digitalmars-d-bugs mailing list