Can someone please explain why the following assertion fails?

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 31 12:08:50 PDT 2016


Can someone please explain why the following assertion fails?

import std.stdio;
import std.conv;

void main(string[] args)
{
	auto x = 1;

	assert(hashOf(x.to!(string)) == hashOf(x.to!(string)));
}

Thanks.


More information about the Digitalmars-d-learn mailing list