April 10, 2012 Re: [dmd-beta] D 2.059 beta 4 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright Attachments:
|
>________________________________
> From: Walter Bright <walter@digitalmars.com>
>To: dmd-beta@puremagic.com
>Sent: Tuesday, April 10, 2012 12:25 PM
>Subject: Re: [dmd-beta] D 2.059 beta 4
>
>
>
>
>On 4/10/2012 3:59 AM, Steve Schveighoffer wrote:
>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.
>No. Two functions are generated.
>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.
-Steve
|
Copyright © 1999-2021 by the D Language Foundation