A simplification of the RvalueRef idiom

kink via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 22 08:57:28 PST 2016


On Tuesday, 22 November 2016 at 16:05:35 UTC, Satoshi wrote:
> Sorry, but D seems to be worse and worse day by day.
> This should be resolved by language and not doing it by 
> template function.

I hate this 'idiom' too (just a clumsy workaround for something 
that should work out of the box), but the non-bindability of 
rvalues to ref params and the associated dispute is veeery old, 
nothing new, so I don't agree that the language gets worse every 
day. ;)


More information about the Digitalmars-d-learn mailing list