rvalue references

Namespace via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 12 12:46:13 PDT 2015


On Friday, 12 June 2015 at 19:39:25 UTC, Stewart Gordon wrote:
> On 09/06/2015 13:14, Namespace wrote:
> <snip>
>> What does this have to do with "garbage-collected language"?
>> If I have a big struct, e.g.
>> ----
>> struct Matrix {
>>      float[16] values = [...];
>> }
>> ----
>> I always want to pass it by ref because a move or a copy would 
>> be too slow.
>
> That seems to me a matter more of having something that behaves 
> like C++ const T&, than of rvalue references as such.
>
> Stewart.

Yes, you could say that. It is implemented in this manner.


More information about the Digitalmars-d mailing list