[Issue 1164] Wrong order of memory deallocation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 19 12:10:55 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1164
deewiant at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from deewiant at gmail.com 2007-04-19 14:10 -------
Invalid. http://www.digitalmars.com/d/class.html#destructors has the following
passage:
"When the garbage collector calls a destructor for an object of a class that
has members that are references to garbage collected objects, those references
are no longer valid. This means that destructors cannot reference sub objects.
This rule does not apply to auto objects or objects deleted with the
DeleteExpression."
--
More information about the Digitalmars-d-bugs
mailing list