Array copy warning
Benjamin Thaut
code at benjamin-thaut.de
Sun Oct 13 09:00:02 PDT 2013
Am 13.10.2013 17:22, schrieb Mike Wey:
>
> With 2.063 and up when assigning to a slice you'll also need to use the
> slice operator on the right of the assignment.
> This is also true for regular arrays.
>
The code that generates the warning looks like this:
mem[0..this.length] = this[];
So I assume this already correct, unless I misunderstand it and the new
form should be:
mem[0..this.length] = this[][];
More information about the Digitalmars-d-learn
mailing list