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

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5667 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --

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

2011-08-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 Cristi Cobzarenco cristi.cobzare...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

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

2011-07-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 --- Comment #9 from Cristi Cobzarenco cristi.cobzare...@gmail.com 2011-07-28 04:07:39 PDT --- Created a pull request with the fix and a unittest. https://github.com/D-Programming-Language/druntime/pull/45 -- Configure issuemail:

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

2011-07-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||k.hara...@gmail.com

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

2011-07-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 --- Comment #7 from Steven Schveighoffer schvei...@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

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

2011-07-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 --- Comment #5 from Cristi Cobzarenco cristi.cobzare...@gmail.com 2011-07-19 06:28:06 PDT --- *** Issue 6203 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email

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

2011-07-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 --- Comment #4 from Steven Schveighoffer schvei...@yahoo.com 2011-07-07 04:35:29 PDT --- The code for TypeInfo_Struct.destroy is in object_.d: https://github.com/D-Programming-Language/druntime/blob/master/src/object_.d#L986 It appears that

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

2011-07-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5667 --- Comment #3 from Cristi Cobzarenco cristi.cobzare...@gmail.com 2011-07-06 10:42:33 PDT --- I think I found a fix, but I'm not sure if it's correct as I don't know much about the D runtime. In file object_.d, line 2600: void clear(T)(ref T