[Issue 3639] std.conv.to!string(anytype[numeric]) items order seems inconsistent

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 22 08:02:56 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3639



--- Comment #5 from Andrei Alexandrescu <andrei at metalanguage.com> 2009-12-22 08:02:56 PST ---
(In reply to comment #4)
> Created an attachment (id=533) [details]
> if (i > 0) result.put(separator);

The code assumes the set of numeric keys is contiguous, which is untrue for
most associative arrays. For example, trying the code with [5:"a", 100:"b"]
will fail.

-- 
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