Issue 1974 - What's your opinion?

Dukc ajieskola at
Thu Oct 24 11:45:02 UTC 2019

On Thursday, 24 October 2019 at 08:02:28 UTC, RazvanN wrote:
> Hello everyone,
> [snip]

The root cause here, I think, is that `Foo.opAddAssign` takes the 
implicit member parameter as `auto ref` when in this case it 
would be more appropriate to take it as `ref`.

Unfortunately, you can't mark it like that - `void 
opAddAssign(int z) ref { _this.y += z; }` fails to compile. 
Perhaps it should?

More information about the Digitalmars-d mailing list