digitalmars.D.bugs - [Issue 5465] New: AA.keys with char keys
- d-bugmail puremagic.com (30/30) Jan 20 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5465
- d-bugmail puremagic.com (11/11) Jan 20 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5465
- d-bugmail puremagic.com (12/12) Apr 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5465
- d-bugmail puremagic.com (9/9) Apr 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5465
http://d.puremagic.com/issues/show_bug.cgi?id=5465 Summary: AA.keys with char keys Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc Similar code used to work in D1 (printing "aehilmpstx "), but with DMD 2.051 it prints a wrong output: import std.stdio; void main() { string text = "this is a text example"; int[char] aa; foreach (c; text) aa[c]++; writeln(aa.keys); } Generated printout: t1 Expected printout, something like: ['t', 'h', ' ', 'x', 'p', 'l', 'i', 'a', 'e', 'm', 's] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5465 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au It started doing that in 2.046, and still failed in 2.051. But it's working in my local copy of DMD, so should be fixed in the next release. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 20 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5465 Pedro Rodrigues <pdfrodrigues gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pdfrodrigues gmail.com 06:31:27 PDT --- I've tested with version 2.052 and obtained the following output: th xpliaems So it's probably fixed now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5465 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2011