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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Erik Johansson Andersson <[email protected]> 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: -------