This problem occurs, if an array is initialized with the static initializer: import std.gc; extern(C) int printf( char*, ... ); class C{ ~this(){ printf( "DTor()\n" ); } } C[] carr; void setup(){ carr = [ new C, new C]; } void main(){ setup(); fullCollect(); printf( "complete\n" ); } // expected output complete DTor() DTor() // but it is DTor() DTor() complete
Fixed DMD 1.005
Added to DStress as http://dstress.kuehne.cn/run/m/memory_management_06_A.d
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル