DIP1000: Walter's proposal to resolve ambiguity of ref-return-scope parameters

Paul Backus snarwin at gmail.com
Fri Nov 26 14:48:21 UTC 2021


On Friday, 26 November 2021 at 07:44:22 UTC, WebFreak001 wrote:
> Would think you could write it like this:
>
> ```d
> inout int[] getSomething(inout return this, int offset) 
> @property { ... }
> ```

Yes, this is what I had in mind. You'd write the attributes 
exactly the same way you would for a non-member function.


More information about the Digitalmars-d mailing list