[Issue 12787] can't nest associative arrays and arrays
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 22 12:39:06 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12787
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc ---
Probably this is already reported in another Bugzilla issue.
This is a workaround until this problem gets fixed:
void main() {
int[][char][][] a1 = [
[
['a':[1,2,3],'b':[2,3,4],'c':[3,4,5]],
['d':[6,7,8],'e':[7,8,9]]
],
[
['a':[1,2,3],'b':[2,3,4],'c':[3,4,5]],
['d':[6,7,8],'e':[7,8,9]]
]
];
int[][char][][int] a2 = cast()[
1000:[
['a':[1,2,3],'b':[2,3,4],'c':[3,4,5]],
['d':[6,7,8],'e':[7,8,9]]
],
2000:[
['a':[1,2,3],'b':[2,3,4],'c':[3,4,5]],
['d':[6,7,8],'e':[7,8,9]]
]
];
}
--
More information about the Digitalmars-d-bugs
mailing list