[phobos] array appending changes to druntime

Walter Bright walter at digitalmars.com
Sat Feb 20 19:46:56 PST 2010



Steve Schveighoffer wrote:
> All set:
>
>   

The changes don't seem to be checked in, this still fails:

unittest {
#line 950 "0350-arrays.tex"
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
}

void main(){}


More information about the phobos mailing list