[Issue 9600] Inner class is not finalized on parent class finalization

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 24 07:45:54 PDT 2014


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |
                 CC|                            |yebblies at gmail.com
           Severity|major                       |enhancement

--- Comment #2 from yebblies <yebblies at gmail.com> ---
Unless I'm mistaken, you're asking for the GC to walk the heap and finalize all
nested class instances when an object dies.  This is most certainly an
enhancement.  Your code is working as designed - it is not valid to
finalize/delete a class and then reference it, implicitly or otherwise.

--


More information about the Digitalmars-d-bugs mailing list