Range Type

Janice Caron caron800 at googlemail.com
Mon Mar 24 12:07:28 PDT 2008


On 24/03/2008, Craig Black <cblack at ara.com> wrote:
> int..[]

I think I'd be happy with Range!(int)


>  To clarify my opinion, I don't see a point in specifying the second type.

...unless of course the second type is different from the first type!
:) Rare though that case may be, I think we'd need it in order to
retain the existing functionality of opSlice(T,U).

Also, Range!(T,U)[] is unambiguous, wheras T..U[] ...?



More information about the Digitalmars-d mailing list