DIP1000: Walter's proposal to resolve ambiguity of ref-return-scope parameters
zjh
fqbqrr at 163.com
Sat Nov 27 06:36:28 UTC 2021
On Saturday, 27 November 2021 at 03:41:05 UTC, Paul Backus wrote:
> ```d
> struct S
> {
> private int[] a;
> const int[] getArray() const { return a; }
> }
> ```
We should collect a beginner's `error prone` items,And put a link
on the home page.
can we like this?
```d
@constthis
const int[] getArray() { return a; }
```
`python`'s `self` is everywhere,it's very annoying.
More information about the Digitalmars-d
mailing list