[phobos] array appending changes to druntime

Andrei Alexandrescu andrei at erdani.com
Wed Feb 17 08:05:31 PST 2010


Steve was working on this. Steve, did you commit your changes to phobos? 
(I think Steve is on the list, but I'm adding him just to be sure.)

Andrei

Walter Bright wrote:
> This TDPL book example still fails:
> 
> unittest {
> int[] a = [0, 10, 20, 30, 40, 50, 60, 70];
> auto b = a[4 .. $];
> a = a[0 .. 4];
> // At this point a and b are adjacent
> a ~= [0, 0, 0, 0];
> assert(b == [40, 50, 60, 70]); // passes; a got reallocated
> }
> 
> 
> 
> because the agreed upon array append changes to druntime haven't been 
> done yet. I can't recall who was doing that, or indeed if anyone had 
> taken responsibility for getting it done.
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos


More information about the phobos mailing list