D does not support such implicit *construction* in return statement and function argument.<div>It is a current language design, and not a bug.<br></div><div><br></div><div>Kenji Hara</div><div class="gmail_extra"><br><br><div class="gmail_quote">
2012/12/13 Simen Kjaeraas <span dir="ltr"><<a href="mailto:simen.kjaras@gmail.com" target="_blank">simen.kjaras@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On <a href="tel:2012-22-13%2004" value="+12012221304" target="_blank">2012-22-13 04</a>:12, Jonathan M Davis <<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>> wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wednesday, December 12, 2012 13:35:59 Walter Bright wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/12/2012 10:25 AM, Jonathan M Davis wrote:<br>
> If alias this isn't do an implict conversion, then there's a bug in alias<br>
> this. That's how implict conversion is done in D, and it's the whole point<br>
> of alias this.<br>
<br>
And it does, as I relied on this to do the halffloat implementation.<br>
</blockquote>
<br>
Simen's example doesn't seem to work though, so he appears to have found a<br>
bug. Certainly, I don't see anything wrong with it, but alias this doesn't<br>
seem to work for it. Regardless, my point was that if there's a case where<br>
alias this isn't doing an implicit conversion, then it's a bug, because that's<br>
the whole reason that it exists.<br>
</blockquote>
<br></div></div>
So it is supposed to work? I've always thought this was a deliberate design<br>
choice. I guess I'll file a bug, then. Here:<br>
<br>
<a href="http://d.puremagic.com/issues/show_bug.cgi?id=9147" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=9147</a><br>
<br>
Kenji, you here? :p<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Simen<br>
</font></span></blockquote></div><br></div>