http://d.puremagic.com/issues/show_bug.cgi?id=6666


Vladimir Panteleev <thecybersha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybersha...@gmail.com


--- Comment #1 from Vladimir Panteleev <thecybersha...@gmail.com> 2011-09-13 
18:04:22 PDT ---
This is known, documented behavior. From
http://www.d-programming-language.org/class.html#destructors :

> Furthermore, the order in which the garbage collector calls destructors for 
> unreference objects is not specified. This means that 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 may no longer 
> be valid. This means that destructors cannot reference sub objects.

(In reply to comment #0)
> It seems like we need to somehow sort the to be finalized memory while
> scanning.

What about cyclic references?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to