auto ref escaping local variable

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 24 00:49:17 PST 2017


On 01/24/2017 12:47 AM, Ali Çehreli wrote:

 > Lvalues are passed by reference and rvalues are copied.

I keep making that mistake! Despite the by-copy syntax, rvalues are moved.

Ali



More information about the Digitalmars-d mailing list