rvalues -> ref (yup... again!)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Mar 31 13:37:22 UTC 2018


On 3/31/18 9:28 AM, Timon Gehr wrote:
> On 30.03.2018 11:06, Atila Neves wrote:
>>
>> Right, and I was assuming (perhaps incorrectly) that this existing 
>> code was C++, hence me being on board with binding rvalues to const 
>> ref there.
> 
> That must not happen. D const and C++ const don't even mean the same 
> thing, and now suddenly you will see people use extern(C++) just to get 
> the binding of rvalues to ref. Add to this the confusing overload 
> behavior if const signifies anything other than read-only.

This is a very important aspect that must not be overlooked.

Allow me to reiterate: the one way to get this going is convert the 
forum dialog into a team and a DIP.


Andrei


More information about the Digitalmars-d mailing list