On Monday, 11 June 2012 at 11:47:59 UTC, Matej Nanut wrote:
On Monday, 11 June 2012 at 10:33:22 UTC, Era Scarecrow wrote:
Most curiously while making unittests the asserts fail when
I've confirmed it's working. The difference seems to be if
it's immutable/const vs non, and why this makes a difference I
don't see... Can someone give some light to this?
const float i_f = 3.14159265;
float a = i_f;
float b = i_f;
assert(a==b); //passes
assert(a==i_f); //fails
Works for me.
(Arch Linux x64, DMD from repositories, says the version is
2.059.)
Hmmm I'm using 2.059 but for win32. Perhaps a 32bit specific bug
or something else? I doubt it has anything to do with me running
Win7 64bit...