October 20, 2003 array ops? | ||||
---|---|---|---|---|
| ||||
I know array ops are not implemented yet, but IIRC this showed a message telling so: void foo() { ubyte [] x = new ubyte[2]; x[] = x[] - x[0]; } Now I get: incompatible types for ((x[]) - (cast(int)(x[0]))): 'ubyte[]' and 'int' ------------------------- Carlos Santander --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.528 / Virus Database: 324 - Release Date: 2003-10-16 |
October 23, 2003 Re: array ops? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | "Carlos Santander B." <carlos8294@msn.com> wrote in message news:bmvfct$8ag$1@digitaldaemon.com... > I know array ops are not implemented yet, but IIRC this showed a message telling so: > > void foo() { > ubyte [] x = new ubyte[2]; > x[] = x[] - x[0]; > } > > Now I get: incompatible types for ((x[]) - (cast(int)(x[0]))): 'ubyte[]' and > 'int' Yes, that's a symptom of array ops not being implemented yet. |
Copyright © 1999-2021 by the D Language Foundation