<div dir="ltr"><div>If the given argument to the out parameter is not correctly initialized (eg. void initialized variable), calling dtor for the argument is absolutely unsafe. That's the reason why my patch was rejected by Walter.</div>
<div><br></div><div>Alternative language semantics in my thought is:</div><div>---</div><div>If an out parameter typed T exists, and<br></div><div>  1. T has elaborate destructor</div>  2. T.init represents logically invalid object (T is nested struct, and/or T has @disable this();)<div>
Automatic blit initializing for the out parameter would be unsafe.</div><div><br></div><div>So semantic analysis would reject such a out parameter declaration.</div><div>---</div><div class="gmail_extra"><br></div><div class="gmail_extra">
But I'm still not sure the rule is enough useful for many cases...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Kenji Hara<br><br><div class="gmail_quote">2013/10/3 Benjamin Thaut <span dir="ltr"><<a href="mailto:code@benjamin-thaut.de" target="_blank">code@benjamin-thaut.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><a href="http://d.puremagic.com/issues/show_bug.cgi?id=6186" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=6186</a><br>

<br>
This bug is open since two years and nothing has happend so far.<br>
<br>
If you look at it its really funny:<br>
<br>
Kenji: Heres a Bug and a fix<br>
Walter: I don't like your fix but I don't have a better idea<br>
Kenji: closes pull request<br>
-- silence -- (for over 2 years)<br>
<br>
We should really find a solution for this problem.<br>
<br>
Kind Regards<span class=""><font color="#888888"><br>
Benjamin Thaut<br>
</font></span></blockquote></div><br></div></div>