int bar() { int [] x = [0, 1, 2]; x[x.length-1] = 5; // works x[$-1] = 5; // fails return 0; } int z = bar(); --- ctfe.d(6): Error: variable __dollar is used before initialization ctfe.d(10): Error: cannot evaluate bar() at compile time I have a patch for this, together with 2569 and 1948.
Patch included in patch for bug#2569.
Fixed dmd 1.047 and 2.032
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル