digitalmars.D.bugs - [Issue 3639] New: std.conv.to!string(anytype[numeric]) items order seems inconsistent
- d-bugmail puremagic.com (24/24) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (11/11) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (9/9) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (8/8) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (7/7) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (9/11) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (8/8) Dec 22 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3639
- d-bugmail puremagic.com (9/9) Jan 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3639
http://d.puremagic.com/issues/show_bug.cgi?id=3639 Summary: std.conv.to!string(anytype[numeric]) items order seems inconsistent Product: D Version: 2.036 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: julien onandon.be --- Created an attachment (id=530) Test case Hello, the order of the items seems inconsistent depending on key type. Please see the attachment. Thank you, Julian. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrei metalanguage.com 06:56:19 PST --- This is by design - associative arrays don't come out in key sorted order. We could change that behavior but that would make the function slower. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 --- Created an attachment (id=531) Quick hack Would this quick hack make the function slower too ? Tested with a few unittests. It removes the segfaults from anytype[ushort] too. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 --- Created an attachment (id=532) Quick hack (const s.length) Small correction. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 --- Created an attachment (id=533) if (i > 0) result.put(separator); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 08:02:56 PST ---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: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 --- Right. Back to slow indexes sorting. Thank you, Julian. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 22 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3639 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 08 2011