My thoughts & tries with rvalue references

Namespace rswhite4 at googlemail.com
Tue Apr 2 11:32:46 PDT 2013


On Tuesday, 2 April 2013 at 17:30:33 UTC, kenji hara wrote:
> I think 'scope ref' is better.
> 'in' = 'const scope', then 'in ref' = 'const scope ref'.
>
> bool opEquals(in ref T rhs) const { ... }
>
> Kenji Hara
> 2013/03/30 21:06 "Namespace" <rswhite4 at googlemail.com>:
>
>> As far as I studied the code, something like @ref isn't 
>> possible, because
>> ref is already a keyword. Except as Pseudo-property. But this 
>> is a
>> combination of '@' and 'ref' so that both, '@ref' and '@ ref' 
>> would be
>> valid.
>> I still like the idea of '&A'.

As far as I know Jonathan was strict against it, or not?
But that sounds and looks nice and would be very easy to 
implement.


More information about the Digitalmars-d mailing list