[Issue 4605] New: Wrong print of an int[string] aa
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 9 08:47:55 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4605
Summary: Wrong print of an int[string] aa
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-08-09 08:47:54 PDT ---
This D2 program, compiled with dmd 2.048b:
import std.stdio;
void main() {
int[string] aa = ["10":10, "20":20];
writeln(aa);
}
Prints (note the 1:10, that is a bug):
20:20 1:10
The expected less buggy and less barbaric output is:
["10": 10, "20": 20]
Or:
["20": 20, "10": 10]
--
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