Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 20, 2011 [Issue 5465] New: AA.keys with char keys | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from bearophile_hugs@eml.cc 2011-01-20 03:18:09 PST --- 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: ------- |
January 20, 2011 [Issue 5465] AA.keys with char keys | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5465 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-01-20 08:19:41 PST --- 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: ------- |
April 15, 2011 [Issue 5465] AA.keys with char keys | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5465 Pedro Rodrigues <pdfrodrigues@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pdfrodrigues@gmail.com --- Comment #2 from Pedro Rodrigues <pdfrodrigues@gmail.com> 2011-04-15 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: ------- |
April 15, 2011 [Issue 5465] AA.keys with char keys | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation