Re: arrays of struct - critical bug?

2013-05-19 Thread Maxim Fomin
Yes, because dmd in some cases unexpectedly inserts temporaries. http://d.puremagic.com/issues/show_bug.cgi?id=9334 http://d.puremagic.com/issues/show_bug.cgi?id=9335

arrays of struct - critical bug?

2013-05-19 Thread Jack Applegame
Calling constructors/destructors/postblits for structs in array is totally unpredictable. dmd 2.062 - http://dpaste.1azy.net/445359ad gdc 2.060 - http://dpaste.1azy.net/7d0bf021 ldc 2.060 - http://dpaste.1azy.net/74034586 Code: import std.stdio; struct A { this(int a) { m = a; writefln("con