The difference between T[] opIndex() and T[] opSlice()

Steven Schveighoffer schveiguy at gmail.com
Mon Oct 2 02:58:34 UTC 2023


On 10/1/23 1:41 PM, Salih Dincer wrote:
> Hi,
> 
> What is the difference between T[] opIndex() and T[] opSlice(), which 
> haven't parameters?

None. It used to be that opSlice was the only way, and the mechanisms 
opSlice uses are still valid.

-Steve


More information about the Digitalmars-d-learn mailing list