The difference between T[] opIndex() and T[] opSlice()
    Salih Dincer 
    salihdb at hotmail.com
       
    Sun Oct  1 17:51:17 UTC 2023
    
    
  
On Sunday, 1 October 2023 at 17:41:08 UTC, Salih Dincer wrote:
> Also, is it correct to use [] when returning?
>
> Thanks...
[Here](https://dlang.org/spec/operatoroverloading.html#slice), 
the opIndex() is proposed and an example of parameterized the 
opSlice() is given for multidimensional arrays.  Like there's no 
difference, huh?
Puff :)
    
    
More information about the Digitalmars-d-learn
mailing list