<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div class="yui_3_2_0_19_133406110040065" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"> <div class="yui_3_2_0_19_133406110040067" style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Walter Bright <walter@digitalmars.com><br> <b><span style="font-weight: bold;">To:</span></b> dmd-beta@puremagic.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 10, 2012 12:25 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [dmd-beta] D 2.059 beta 4<br> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1985115412">
<div>
<br>
<br>
On 4/10/2012 3:59 AM, Steve Schveighoffer wrote:
<blockquote type="cite">
<div style="color:rgb(0, 0, 0);background-color:rgb(255, 255,
255);font-family:arial, helvetica, sans-serif;font-size:12pt;">
<div><span>If I understand correctly (and I very well might
not), the idea is that auto ref is *always* ref, so only one
function is generated.</span></div>
</div>
</blockquote>
<br>
No. Two functions are generated.<br></div></div></div></div></blockquote>I was referring to what I thought Andrei wanted, not how it is currently implemented. As I understand it, there is great confusion around this mechanism (and rightly so, I think the name is quite unintuitive). Anyway, it looks like the above is along the lines of what Andrei wanted, judging by his post explaining C++'s rvalue references.<br></div><div><br></div><div>-Steve<br></div> </div></body></html>