`lvalueof` property on rvalues

Basile B. b2.temp at gmx.com
Mon May 9 14:03:21 UTC 2022


what about

```d
void fun(ref int);
fun(1.lvalueof);
```

previous work : https://wiki.dlang.org/DIP39

The `lvalueof` property could create a temporary variable if the 
exp it's used on is not already a lvalue, otherwise it would do 
nothing.


More information about the Digitalmars-d mailing list