opIndex() may hide opSlice()

XavierAP via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 10 08:29:48 PST 2017


On Friday, 10 March 2017 at 14:15:45 UTC, Nick Treleaven wrote:
>
> Also deprecating nullary opSlice() would work against defining 
> opSlice(int low = 0, int high = length).

The same call [] can go to a variadic opIndex(T[] indices ...)

So many possibilities :_)


More information about the Digitalmars-d mailing list