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 [
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
The patch for bug 3522 fixes this.
Changeset 460
Fixed DMD2.044
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル