On Thursday, 15 July 2021 at 15:39:59 UTC, Tejas wrote:
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

No worries. Your time is very much appreciated.

Reply via email to