Binding rvalues to ref parameters redux

Atila Neves atila.neves at gmail.com
Thu Apr 4 13:43:32 UTC 2019


On Thursday, 4 April 2019 at 00:16:11 UTC, Nicholas Wilson wrote:
> On Wednesday, 3 April 2019 at 16:57:10 UTC, bitwise wrote:
>> On Tuesday, 2 April 2019 at 23:40:42 UTC, Nicholas Wilson 
>> wrote:
>>> On Monday, 1 April 2019 at 16:43:15 UTC, bitwise wrote:
>>>> On Thursday, 28 March 2019 at 16:07:17 UTC, Nicholas Wilson 
>>>> wrote:
>>>> Any code using 'in' right now deserves to break. (but 
>>>> actually, that may not be necessary)
>>>
>>> That change is still within our 2 year deprecation period and 
>>> I think it was not a good move.
>>
>> I don't understand - are you saying it was already deprecated?
>
> No, I'm saying I don't think it was a good move to change it 
> for const scope to const.
> I certainly don't remember any community discussion about it at
>  the time.

+1. I *want* `in` to be `scope const`. Any code that breaks as a 
result of DIP1000 that uses `in` deserves to break anyway.



More information about the Digitalmars-d mailing list