shifting array slices

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Feb 11 11:53:37 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7484

On 02/11/2012 12:09 PM, Ellery Newcomer wrote:
> I'm pretty sure this used to work:
>
> import std.algorithm;
>
> int[] ra;
> copy(ra[5 .. 10], ra[4 .. 9]);
>
> and would correctly shift the range [5 .. 10] down one
> (unlike ra[4 .. 9] = ra[5 .. 10], which is prohibited by spec)
>
> In dmd 2.057 of course it doesn't work; is this a bug or should I be
> looking elsewhere for this functionality?


More information about the Digitalmars-d-learn mailing list