RFC on range design for D2

Manfred_Nowak svv1999 at hotmail.com
Tue Sep 9 20:46:50 PDT 2008


Dejan Lekic wrote:

> r.fromBegin(s) is really s.toEnd(r)

Might be true only, if `s' equals `r'.

Otherwise at least one seems to be undefined, because not both can be 
true subranges of each other. 

I used the conjunctive form, because a formal definition of "subrange" 
is missing. Such is needed because in a cyclic model `s' and `r' might 
be equal, but not identical, because they contain a whole cycle, but 
their start points differ.

-manfred

-- 
If life is going to exist in this Universe, then the one thing it 
cannot afford to have is a sense of proportion. (Douglas Adams)



More information about the Digitalmars-d-announce mailing list