DIP 1016--ref T accepts r-values--Formal Assessment
r.schuett.1987 at gmail.com
Thu Jan 24 21:42:22 UTC 2019
On Thursday, 24 January 2019 at 07:18:58 UTC, Mike Parker wrote:
>> T __temp0 = void;
>> fun(__temp0 := 10);
> The first problem the Language Maintainers identified with this
> approach is that the rewrite is from an expression to a
> statement, rendering it invalid.
> The expression should be rewritten as an expression to clarify
> how it behaves in larger expressions.
Couldn't that just be rewritten as something like
More information about the Digitalmars-d-announce