March 18, 2012 Array operation a1 + a2 not implemented! | ||||
|---|---|---|---|---|
| ||||
void main() {
float[4] a1 = [1, 2, 3, 4];
float[4] a2 = [3, 2, 8, 2];
auto r = a1 + a2;
}
When are they going to be implemented?
| ||||
March 18, 2012 Re: Array operation a1 + a2 not implemented! | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Caligo | On 03/18/2012 05:37 AM, Caligo wrote:
> void main() {
> float[4] a1 = [1, 2, 3, 4];
> float[4] a2 = [3, 2, 8, 2];
> auto r = a1 + a2;
> }
>
> When are they going to be implemented?
I don't know, but this works:
void main() {
float[4] a1 = [1, 2, 3, 4];
float[4] a2 = [3, 2, 8, 2];
float[4] r = a1[] + a2[];
}
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply