[Issue 3824] New: An AA with an AA as key doesn't seem to work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 18 11:26:10 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3824
Summary: An AA with an AA as key doesn't seem to work
Product: D
Version: 2.040
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: sean at invisibleduck.org
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-02-18 11:26:09 PST ---
import std.stdio;
void main() {
int[int] aa1 = [1:2, 3:4];
int[int] aa2 = [5:6, 7:8];
byte[int[int]] s;
s[aa1] = 1;
s[aa2] = 2;
writeln(s);
}
It prints:
[[1:2,3:4]:2]
Instead of something as:
[[1: 2, 3: 4]: 1, [5: 6, 7: 8]: 2]
--
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