[dmd-beta] D 2.059 beta 4

Andrei Alexandrescu andrei at erdani.com
Tue Apr 10 10:50:34 PDT 2012


On 4/10/12 11:25 AM, Walter Bright wrote:
> 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.

That is correct. In the proposal I sketched last night, for templates 
it's possible to only generate one function and simply loosen the 
requirement that the caller has an lvalue.

Andrei



More information about the dmd-beta mailing list