|
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 - MinTL dmd-119 update and arraylist enhancement
I've updated MinTL to work with dmd-119, though there could be a problem with MultiAA, which is an alias for Value[][Key]. The unittest fails when I try to concatenate onto the end of the Value[] array and set that back into the AA. I don't know what is going on with that so I'll have to check it out when I get more time. I also added some functions to ArrayList to allow it to be used like an array with capacity. I added the new read/write property capacity and added a setter for length. For those who don't know MinTL an ArrayList is an array with efficient insert/delete from the head and tail. Basically it is a circular array. By keeping the head at 0 it becomes an array with capacity. I decided the tradeoff of reusing ArrayList is better than inventing a whole new type for tracking capacity. Available from the usual place http://home.comcast.net/~benhinkle/mintl/ Mar 23 2005
"Ben Hinkle" <ben.hinkle gmail.com> wrote in message news:d1tdnp$109m$1 digitaldaemon.com...I've updated MinTL to work with dmd-119, though there could be a problem with MultiAA, which is an alias for Value[][Key]. The unittest fails when I try to concatenate onto the end of the Value[] array and set that back into the AA. I don't know what is going on with that so I'll have to check it out when I get more time. Mar 26 2005
Should the following two commonly used methods be added into mintl/list.d ?
Value first() { return head.data; }
Value last() { return tail.data; }
Mar 26 2005
<bug d.com> wrote in message news:d25bth$174i$1 digitaldaemon.com... Mar 27 2005
In article <d26a9f$26cr$1 digitaldaemon.com>, Ben Hinkle says...<bug d.com> wrote in message news:d25bth$174i$1 digitaldaemon.com... Mar 27 2005
<bug d.com> wrote in message news:d26v7a$2rdm$1 digitaldaemon.com...In article <d26a9f$26cr$1 digitaldaemon.com>, Ben Hinkle says...<bug d.com> wrote in message news:d25bth$174i$1 digitaldaemon.com... Mar 27 2005
|