import std.stdio;
void main() {
double[] foo = [1.0,2,3,4,5].dup;
writeln(foo[] * 2.0);
}
Output of this program on Win32:
object.Error: Access Violation
[
Comment #1 by hoganmeier — 2010-01-17T17:28:45Z
Also note the following:
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];
writeln(a[] * b[]); // compiles, but results in access violation
writeln(a[] + b[]); // array operation a[] + b[] not implemented
This bug also is in relation to
http://d.puremagic.com/issues/show_bug.cgi?id=3066