[Issue 5667] [GSoC] "clear" does not call destructors on structs embedded in structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 27 12:35:17 PDT 2011


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



--- Comment #7 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-07-27 12:35:13 PDT ---
Yes, clearly that is a good path.

But my question is, why __dtor not the same as destroy?  Is there any reason to
call ~this() without calling all the sub-dtors?

In my opinion, ~this() should implicitly contain the __dtors for all the
members at the end.

But yes, having clear use typeid().destroy will fix the original symptom.  If
we don't intend to fix the root cause, we should at least document that nobody
should ever use __dtor...

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


More information about the Digitalmars-d-bugs mailing list