Move Constructors - Converting Lvalues to Rvalues

Imperatorn johan_forsberg_86 at hotmail.com
Tue Oct 1 20:19:56 UTC 2024


On Tuesday, 1 October 2024 at 17:37:37 UTC, Walter Bright wrote:
> On 10/1/2024 12:27 AM, Dukc wrote:
>> Why special syntax? `move` is a DRuntime function so it's 
>> expected that it can have special semantics, even without 
>> special syntax.
>
> Converting to an rvalue is an enabler of other functions, too, 
> not just move. __rvalue is a building block, not a complete 
> function.

The __rvalue route makes sense and is intuitive imo.


More information about the Digitalmars-d mailing list