October 23, 2016
On Saturday, 22 October 2016 at 22:05:54 UTC, Jonathan M Davis wrote:
> On Saturday, October 22, 2016 23:13:28 Timon Gehr via Digitalmars-d wrote:
>> I'm ready to participate (but I can't invest too much time at the moment). Are we going with @rvalue ref?
>
> That would certainly be my preference - at least out of what's been discussed thus far.
>
> - Jonathan M Davis

With move semantics in mind, I'm wondering if there may be a better word.

Currently in D, IIRC, explicit moving can be done through by-value arguments. If you want to move explicitly from an lvalue, you can use D's std.move(lvalue). The downside is an extra blit/init into the rvalue that's returned by std.move. Then, the function that takes the rvalue may blit again in order to store the contents that are being moved in.

As an alternative, non-const '@rvalue ref param' could be used...but would it be clear enough to people(seeing non-const @rvalue) that the contents of the argument could potentially be consumed/moved-from?


October 28, 2016
On Friday, 21 October 2016 at 07:56:40 UTC, Ethan Watson wrote:
> On Thursday, 20 October 2016 at 19:49:42 UTC, Andrei Alexandrescu wrote:
>> I think a solid DIP addressing the problem would have a good chance to get traction.
>
> I think all the information in this thread and the "Binding rvalues to const ref in D" thread that Atilla started is enough for me to write up a solid DIP.
>
> I'll start doing that. Hopefully I'll get a draft up that I'll pass to Manu for comment/input this weekend before posting it properly.

Any news on this?

October 30, 2016
On Friday, 28 October 2016 at 21:05:33 UTC, bitwise wrote:
> On Friday, 21 October 2016 at 07:56:40 UTC, Ethan Watson wrote:
>> On Thursday, 20 October 2016 at 19:49:42 UTC, Andrei Alexandrescu wrote:
>>> I think a solid DIP addressing the problem would have a good chance to get traction.
>>
>> I think all the information in this thread and the "Binding rvalues to const ref in D" thread that Atilla started is enough for me to write up a solid DIP.
>>
>> I'll start doing that. Hopefully I'll get a draft up that I'll pass to Manu for comment/input this weekend before posting it properly.
>
> Any news on this?

Hmm. Why did I expect this?

-_-

1 2 3 4 5 6 7 8 9 10
Next ›   Last »