Array operation a1 + a2 not implemented!
H. S. Teoh
hsteoh at quickfur.ath.cx
Sat Mar 17 23:18:41 PDT 2012
On Sat, Mar 17, 2012 at 11:37:15PM -0500, 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?
Are you trying to concatenate the arrays or sum their elements?
Here's how to concatenate:
auto r = a1 ~ a2;
Here's how to sum:
auto r = a1[] + a2[];
T
--
Klein bottle for rent ... inquire within. -- Stephen Mulraney
More information about the Digitalmars-d
mailing list