array operation a[] + b[] not implemented??
Trass3r
un at known.com
Sun Jan 17 14:42:27 PST 2010
It is implemented in the runtime so why doesn't it work?
/***********************
* Computes:
* a[] = b[] + c[]
*/
T[] _arraySliceSliceAddSliceAssign_f(T[] a, T[] c, T[] b)
...
...
void main()
{
float[] a = [0.f, 0.5f, 1.0f, 1.5f, 2.0f, 2.5f];
float[] b = [0.f, 0.5f, 1.0f, 1.5f, 2.0f, 2.5f];
// float[] c = a[] + b[]; // <-- Array operation a[] + b[] not implemented
float[] d = a[] * 4.f + 1.f;
writeln(d); // <-- access violation when program is run
}
More information about the Digitalmars-d
mailing list