digitalmars.D.bugs - Initialization error in classes
- David Medlock (14/14) Jul 07 2006 import std.stdio;
- David Medlock (3/22) Jul 07 2006 Just confirmed this bug does NOT happen in 0.161
- Walter Bright (3/25) Jul 13 2006 I think it did, it just didn't show itself. Anyhow, the fix will go out
- David Medlock (2/5) Jul 14 2006 Thanks, Walter.
- Thomas Kuehne (12/33) Aug 15 2006 -----BEGIN PGP SIGNED MESSAGE-----
import std.stdio; class Foo { float[4] array = 1.0; // current color int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } this prints 0(zero) on my machine: AMD Athlon 64 3200, 1 GB Ram, DMD 0.162 This bug was SUCH a PITA, in my program count was set to 1970169165.
Jul 07 2006
David Medlock wrote:import std.stdio; class Foo { float[4] array = 1.0; // current color int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } this prints 0(zero) on my machine: AMD Athlon 64 3200, 1 GB Ram, DMD 0.162 This bug was SUCH a PITA, in my program count was set to 1970169165.Just confirmed this bug does NOT happen in 0.161 -DavidM
Jul 07 2006
David Medlock wrote:David Medlock wrote:I think it did, it just didn't show itself. Anyhow, the fix will go out in the next update.import std.stdio; class Foo { float[4] array = 1.0; // current color int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } this prints 0(zero) on my machine: AMD Athlon 64 3200, 1 GB Ram, DMD 0.162 This bug was SUCH a PITA, in my program count was set to 1970169165.Just confirmed this bug does NOT happen in 0.161
Jul 13 2006
Walter Bright wrote:I think it did, it just didn't show itself. Anyhow, the fix will go out in the next update.Thanks, Walter.
Jul 14 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Medlock schrieb am 2006-07-08:David Medlock wrote:Added to DStress as http://dstress.kuehne.cn/run/o/odd_bug_06_A.d http://dstress.kuehne.cn/run/o/odd_bug_06_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFE4Zb6LK5blCcjpWoRAoBFAJ9akW1mjVQ3Qr+L2mXs7+h2mNtuMwCeOXVx VabFVDTXK944qM7KRFmro/4= =PxgN -----END PGP SIGNATURE-----import std.stdio; class Foo { float[4] array = 1.0; // current color int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } this prints 0(zero) on my machine: AMD Athlon 64 3200, 1 GB Ram, DMD 0.162 This bug was SUCH a PITA, in my program count was set to 1970169165.Just confirmed this bug does NOT happen in 0.161
Aug 15 2006