On Thursday, 15 July 2021 at 13:28:19 UTC, wjoe wrote:
On Thursday, 15 July 2021 at 12:09:20 UTC, Tejas wrote:
[...]

The only way, for me, to explain the error message ```opIndex isn't an lvalue and can't be modified.``` for ```i[1]++``` is that the compiler rewrites to
```D
(auto e = i.opIndex(1), i.opIndex(1).opUnary!"++"()/*1) note: not opIndexUnary*/, return e;)
```
If it were using ```opIndexUnary``` at 1) it would work.

[...]

Sucks :(

I really can't spend more time on this, hope things work out for you somehow.
Best of luck

Regards
Tejas

Reply via email to