Call site 'ref'
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Jan 18 09:56:43 PST 2012
On 1/18/12 11:27 AM, Timon Gehr wrote:
> On 01/18/2012 06:13 PM, Andrei Alexandrescu wrote:
>> For non-templates, if it's important to distinguish between lvalues and
>> rvalues, use two overloads.
>>
>> Andrei
>
> Currently 'auto ref' gives a compile error if used in a non-templated
> function parameter list. What are the semantics of 'auto ref' you have
> in mind? Are they specified somewhere?
I meant two overloads that don't use auto ref:
void fun(S);
void fun(ref S);
Andrei
More information about the Digitalmars-d
mailing list