|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
digitalmars.D.dtl - more MinTL changes (not backwards compatible)
While looking at the classes and interfaces I started pondering the SortedAA
and LinkedAA structs and I'd like to make some non-backwards compatible
changes (in case anyone cares give a holler).
1) change key slicing to exclude the upper endpoint. That way one can write
nice slicing expressions like dictionary["a" .. "b"] for all the words that
start with "a".
2) rename fromHead and fromTail to begin and end to be closer to C++-style
iterators. Slices involving subarrays will be inclusive (as before) so that
one can write x[x.begin .. x.end] and have it slice the entire thing. I'll
add mixed-type slicing so that x["a" .. x.end] works, too.
3) add from(key) and to(key) to get one-item slices. from(key) is the
smallest item greater than or equal to key and to(key) is the largest item
less than key. So x["a" .. "b"] is equivalent to x[x.from("a") .. x.to("b")]
4) rename Seq to Sequence, SeqWithKeys to IndexedSequence
5) rip out all the mapSeq, findSeq and catSeq.
May 02 2005
On Mon, 2005-05-02 at 17:02 -0400, Ben Hinkle wrote:While looking at the classes and interfaces I started pondering the SortedAA and LinkedAA structs and I'd like to make some non-backwards compatible changes (in case anyone cares give a holler). May 02 2005
1) change key slicing to exclude the upper endpoint. That way one can write nice slicing expressions like dictionary["a" .. "b"] for all the words that start with "a". May 02 2005
|