Thread overview | |||||
---|---|---|---|---|---|
|
July 05, 2010 [Issue 4429] New: .keys for V[real] broken | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4429 Summary: .keys for V[real] broken Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: dsimcha@yahoo.com --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2010-07-05 07:53:57 PDT --- This bug seems to apply no matter what V is, but only applies when the key is a real, not a float or a double. import std.stdio; void main() { uint[real] foo; foo[3.14159265] = 1; foo[2.71828182] = 2; foo[6.66] = 3; writeln(foo); // Works writeln(foo.keys); // 6.66 -0 -0 } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 05, 2010 [Issue 4429] .keys for V[real] broken | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=4429 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2010-07-05 09:38:57 PDT --- Bugs happen, it's life. But this is silly. Phobos/druntime must be designed differently, with a more serious amount of unittests: a bug as simple as this one must be found during development of Phobos/druntime, and not by language users because the code is written in an amateurish way. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 06, 2010 [Issue 4429] .keys for V[real] broken | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=4429 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |schveiguy@yahoo.com Resolution| |DUPLICATE --- Comment #2 from Steven Schveighoffer <schveiguy@yahoo.com> 2010-07-06 04:38:40 PDT --- I think the keys member is horribly broken if the size of the key isn't size_t. I'll add an appropriate comment to 4201 to indicate reals also are a problem. *** This issue has been marked as a duplicate of issue 4201 *** -- 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