DIP1000: 'return scope' ambiguity and why you can't make opIndex work

claptrap clap at trap.com
Mon Jul 5 11:36:51 UTC 2021


On Monday, 5 July 2021 at 10:44:54 UTC, Walter Bright wrote:
> On 7/5/2021 3:01 AM, ag0aep6g wrote:
>> On Monday, 5 July 2021 at 09:28:47 UTC, Walter Bright wrote:

>> Your test function has a `ref` return type and a `ref` 
>> parameter, so we're looking at the first row. That row says 
>> `return` applies to the `ref` part of the parameter (with and 
>> without `scope`).
>
>
> I think you might be right.

How the heck are us mere mortals supposed to use this stuff if 
you struggle to understand what it means?




More information about the Digitalmars-d mailing list