[Issue 8435] BigInts don't work well in associative arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 8 19:46:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8435
--- Comment #9 from Kenji Hara <k.hara.pg at gmail.com> 2013-07-08 19:46:02 PDT ---
>From bug 10118:
> Associative arrays with BigInts as keys are unusable:
>
> import std.bigint, std.stdio;
> void main()
> {
> int[BigInt] a;
> a[BigInt(3)] = 3;
> a[BigInt(3)] = 4;
> writeln(a);
> }
>
> Prints:
>
> [3:3, 3:4]
>
> Apparently duplicate keys.
>
> Probably related to Issue 8435.
>
> I thought this was a consequence of Issue 3789 because BigInt is a struct
> containing a string. But that was resolved recently, and this bug still appears
> in 2.063 beta.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list