Range Type

Craig Black cblack at ara.com
Mon Mar 24 11:52:11 PDT 2008


"Xinok" <xnknet at gmail.com> wrote in message 
news:fs8knm$61p$1 at digitalmars.com...
> Janice Caron wrote:
>> On 24/03/2008, Craig Black <cblack at ara.com> wrote:
>>> I could be wrong, but I don't think this would be a big deal.  The .. 
>>> would
>>>  be interpreted differently when preceded by a type.  The .. would work 
>>> like
>>>  [].
>>
>> I don't think it would, because ".." is an infix operator, whereas
>> "[]" is a postfix operator.
>
> * is also an infix operator, and we seem to get along fine with that.
>
> Regardless, I don't think it will work. How about if you have an array of 
> ranges?
> [10..20, 20..30, 30..40]
>
> How do you write that type?

int..[]

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

-Craig





More information about the Digitalmars-d mailing list