<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Thu., 26 Jul. 2018, 9:35 am 12345swordy via Digitalmars-d, <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thursday, 26 July 2018 at 09:40:03 UTC, RazvanN wrote:<br>
> Hello everyone!<br>
><br>
> As you probably know, I am working on the copy constructor DIP <br>
> and implementation. So far, I managed to implement 95% of the <br>
> copy constructor logic (as stated in the DIP). The point that <br>
> is a bit of a headache is how/when should opAssign be generated <br>
> when a copy constructor is defined. Now here is what I have <br>
> (big thanks to Andrei for all the ideas, suggestions and <br>
> brainstorms):<br>
><br>
> [...]<br>
Why are you not using the destroy() function?</blockquote></div></div><div dir="auto"><br></div><div dir="auto">It pointlessly default initialises immediately after destruction. I tried to suggest destruct() function in complement when I was fiddling with it for C++ recently. I think it would be very useful.</div><div dir="auto"></div></div>