Discussion: Rvalue refs and a Move construtor for D
Atila Neves
atila.neves at gmail.com
Thu Aug 29 09:43:28 UTC 2019
On Thursday, 29 August 2019 at 04:38:03 UTC, Manu wrote:
> On Wed, Aug 28, 2019 at 8:45 PM Suleyman via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>>
>> On Thursday, 29 August 2019 at 01:01:36 UTC, Mike Franklin
>> wrote:
>> > [...]
>>
>> I discussed this with Manu which is pro rvalue ref and he made
>> a lot of good points, the most important thing is that rvalue
>> ref would drastically simplify the implementation of
>> `core.lifetime.move()`.
>>
>> But he pointed out that auto ref already does perfect
>> forwarding.
>
> It's a _part_ of perfect forwarding; the part that allows a
> function
> to receive forwarded arguments.
> The other part is a `forward` implementation passes them
> forward (and
> actually works), and that depends on a `move` implementation
> that
> works.
What's wrong with the current `move` and `forward`
implementations?
More information about the Digitalmars-d
mailing list