Why is opIndexAssign replaced by opSlice here?

Imperatorn johan_forsberg_86 at hotmail.com
Mon Oct 18 05:54:08 UTC 2021


On Monday, 18 October 2021 at 04:11:18 UTC, Paul Backus wrote:
> On Monday, 18 October 2021 at 03:42:35 UTC, Paul Backus wrote:
>> My guess is that you got into this situation by trying to 
>> follow the example in the spec's section on ["Slice Assignment 
>> Operator Overloading"][2]. Unfortunately, that example is 
>> incorrect.
>>
>> [2]: 
>> https://dlang.org/spec/operatoroverloading.html#slice_assignment_operator
>
> https://issues.dlang.org/show_bug.cgi?id=22417
> https://github.com/dlang/dlang.org/pull/3113

Gold star for fixing broken examples 🌟


More information about the Digitalmars-d-learn mailing list