[Issue 7632] New: byValue() for associative arrays doesn't return the correct values
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 2 17:50:16 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7632
Summary: byValue() for associative arrays doesn't return the
correct values
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: exetoc at gmail.com
--- Comment #0 from Erik Johansson Andersson <exetoc at gmail.com> 2012-03-02 17:50:14 PST ---
This has been tested using the latest git revision.
Test case:
import std.stdio;
void main()
{
int[int] i;
foreach (idx; 0 .. 10)
i[idx] = idx * 2;
writeln(i.byValue()); // output: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
writeln(i.values); // output: [0, 8, 16, 2, 10, 18, 4, 12, 6, 14]
}
--
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