Operator for pass by move

Per Nordlöw per.nordlow at gmail.com
Mon Dec 19 11:12:54 UTC 2022


Have anybody considered dedicating a specific operator for 
pass-by-move semantics in assignments and argument passing?

For instance,

```d
y = x;
z = f(y);
```

copies `x` and `y` whereas

```d
y = <<x;
z = f(<<y);
```

moves `x` and `y`.


More information about the Digitalmars-d mailing list