DIP 1016--ref T accepts r-values--Formal Assessment
Neia Neutuladh
neia at ikeran.org
Wed Jan 30 17:18:03 UTC 2019
On Wed, 30 Jan 2019 09:15:36 -0800, Manu wrote:
> Why are you so stuck on this case? The DIP is about accepting rvalues,
> not lvalues...
> Calling with 'p', an lvalue, is not subject to this DIP.
The result of a CastExpression is an rvalue. An implicit cast is a
compiler-inserted CastExpression. Therefore all lvalues with a potential
implicit cast are rvalues.
More information about the Digitalmars-d-announce
mailing list