Class members are apparently not initialized in DMD 0.162 // code sample import std.stdio; class Foo { float[4] array = 1.0; int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } // this prints 0(zero) on my machine
Fixed DMD 0.163.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル