Binding rvalues to ref parameters redux

Nicholas Wilson iamthewilsonator at hotmail.com
Thu Mar 28 16:43:30 UTC 2019


On Thursday, 28 March 2019 at 16:28:47 UTC, Andrei Alexandrescu 
wrote:
> On 3/28/19 12:07 PM, Nicholas Wilson wrote:
>> things that look like lvalues (e.g. @property functions) are 
>> disallowed as candidates for rvalue -> ref conversion
>
> Can you please point to the DIP text that proposes such 
> disallowance? All I see is:
>
> fun(x.prop);   // properties
>
> given as an example of call that should succeed yet fails. The 
> dip is at:
>
> https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1016.md

That was covered in the nonassignability requirement was it not? 
(it is confusing with multiple documents)


More information about the Digitalmars-d mailing list