[OT] Move semantics in a nutshell
Timon Gehr
timon.gehr at gmx.ch
Sat Nov 8 23:03:42 UTC 2025
On 11/8/25 17:40, Sergey wrote:
> On Saturday, 8 November 2025 at 15:44:11 UTC, Timon Gehr wrote:
>> On 11/7/25 20:31, Sergey wrote:
>> I am not sure what is Kinke's perspective as he has not commented as
>> much about the topic.
>
> I meant this proposal https://forum.dlang.org/post/
> vehdu0$1tiu$1 at digitalmars.com
> ...
That proposal leaves behind husks reset to `T.init`, but I think that
was not really the key focus nor a distinguishing feature of that
proposal. I think the key thing there was the somewhat different
proposal for how to define and handle move vs forward. When the topic
was later specifically invariants vs husks, IIRC he did not comment.
>> Personally, I expect husks to win and invariants to lose in D, at
>> least in the near term. While this C++ issue is then not resolved,
>> Manu's design does already avoid the "too many reference types"
>> problem from C++.
>
> Thank you Timon!
> Very interesting observations.
Thanks. :)
More information about the Digitalmars-d
mailing list