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:11:32 PDT 2016


On Monday, 31 October 2016 at 19:08:50 UTC, Gary Willoughby wrote:
> 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.

DMD64 D Compiler v2.072.0
Copyright (c) 1999-2016 by Digital Mars written by Walter Bright

Ubuntu 16.04


More information about the Digitalmars-d-learn mailing list