On 7/7/15 1:27 AM, jmh530 wrote:
If I call a function likeint[] square_array(int[] x) { return x[] *= x[]; } I get an error that there is an overlapping array in a vector operation.
Yeah, this seems like an unnecessary limitation for exact matching. In other words, if your destination array exactly matches one or more of the arguments, it should be fine. Where the overlapping starts causing problems is something like this:
x[1..$] *= x[0..$-1]; I would love to see this limitation fixed. -Steve