The liabilities of binding rvalues to ref

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu May 9 18:47:14 PDT 2013


On 5/9/13 4:36 PM, Peter Alexander wrote:
> I'm not sure about how common it is, but I really don't like the idea of
> calls like swap(1, 2) being legal. Seems like a step backward from C++.

I think if we ever get swap(1, 2) to compile and run we'd effectively 
have destroyed the D programming language.

Andrei


More information about the Digitalmars-d mailing list