Operator for pass by move

deadalnix deadalnix at gmail.com
Wed Dec 21 16:50:20 UTC 2022


On Monday, 19 December 2022 at 17:43:12 UTC, Paul Backus wrote:
> On Monday, 19 December 2022 at 11:12:54 UTC, Per Nordlöw wrote:
>> Have anybody considered dedicating a specific operator for 
>> pass-by-move semantics in assignments and argument passing?
>
> Is `core.lifetime.move` not good enough?

There is no reason for either.

The compiler should definitively be able to move things when 
appropriate (if they are not reused after) and this is allowed by 
the current spec.


More information about the Digitalmars-d mailing list