Discussion: Rvalue refs and a Move construtor for D

Suleyman sahmi.soulaimane at gmail.com
Wed Sep 4 08:21:05 UTC 2019


On Tuesday, 3 September 2019 at 23:51:43 UTC, Manu wrote:
> On Tue, Sep 3, 2019 at 2:45 PM Suleyman via Digitalmars-d 
> <digitalmars-d at puremagic.com> wrote:
>>
>> On Tuesday, 3 September 2019 at 01:50:20 UTC, Manu wrote:
>> > it can't be used on functions that take more than one 
>> > argument.
>>
>> I'm still demanding a use case for rvalue ref other than for 
>> move semantics.
>
> That's it; move semantics. That's not a minor thing...
> Why?

We don't need to expose rvalue ref as a language feature to do 
move semantics. The example with the attribute `@move` works just 
fine. Onl the first parameter is an rvalue ref.



More information about the Digitalmars-d mailing list