What's the deal with "Warning: explicit element-wise assignment..."

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 17 05:33:00 PDT 2014


On Wed, 16 Apr 2014 02:59:29 -0400, Steve Teale  
<steve.teale at britseyeview.com> wrote:

> On Tuesday, 15 April 2014 at 16:02:33 UTC, Steven Schveighoffer wrote:
>
>> Sorry, I had this wrong. The [] on the left hand side is actually part  
>> of the []= operator. But on the right hand side, it simply is a []  
>> operator, not tied to the =. I erroneously thought the arr[] = ...  
>> syntax was special for arrays, but I forgot that it's simply another  
>> operator.
>>
> Steve, where do I find the []= operator in the documentation? It does  
> not seem to be under Expressions like the other operators. Has it just  
> not got there yet?

dlang.org/operatoroverloading.html

Search for opSliceAssign

-Steve


More information about the Digitalmars-d mailing list