<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 1 Oct 2024, 03:31 Bastiaan Veelo via Digitalmars-d, <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Monday, 30 September 2024 at 16:05:16 UTC, Walter Bright wrote:<br>
[...]<br>
> P.S. C++ uses the std::move function to do it:<br>
><br>
> <a href="https://learn.microsoft.com/en-us/cpp/standard-library/utility-functions?view=msvc-170#move" rel="noreferrer noreferrer" target="_blank">https://learn.microsoft.com/en-us/cpp/standard-library/utility-functions?view=msvc-170#move</a><br>
><br>
> which relies on rvalue references:<br>
><br>
> <a href="https://learn.microsoft.com/en-us/cpp/cpp/rvalue-reference-declarator-amp-amp?view=msvc-170" rel="noreferrer noreferrer" target="_blank">https://learn.microsoft.com/en-us/cpp/cpp/rvalue-reference-declarator-amp-amp?view=msvc-170</a><br>
><br>
> which is a major feature which I prefer to avoid.<br>
<br>
I suppose `-preview=rvaluerefparam` is not relevant here, right?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's essential for this design to work; the logic in that preview allows appropriate selection of copy/move overloads.</div></div>