Iterating over an enum associative array

2011-03-14 Thread Nebster
Hey, I'm having some problems iterating over an enumerated associative array. It comes up with this error at compile time: Internal error: e2ir.c 4835 I cut the code down to this: import std.stdio; enum int[string] assoc = [;: 0, =: 1, +: 2, -: 2, *: 3, /: 3]; void main() {

Re: Iterating over an enum associative array

2011-03-14 Thread spir
On 03/14/2011 12:21 PM, Nebster wrote: Hey, I'm having some problems iterating over an enumerated associative array. It comes up with this error at compile time: Internal error: e2ir.c 4835 I cut the code down to this: import std.stdio; enum int[string] assoc = [;: 0, =: 1, +: 2, -: 2,

Re: Iterating over an enum associative array

2011-03-14 Thread Peter Lundgren
== Quote from Nebster (evil.nebs...@gmail.com)'s article Hey, I'm having some problems iterating over an enumerated associative array. It comes up with this error at compile time: Internal error: e2ir.c 4835 I cut the code down to this: import std.stdio; enum int[string] assoc =

Re: Iterating over an enum associative array

2011-03-14 Thread zirneklis
On 14/03/2011 14:38, Peter Lundgren wrote: == Quote from Nebster (evil.nebs...@gmail.com)'s article Hey, I'm having some problems iterating over an enumerated associative array. It comes up with this error at compile time: Internal error: e2ir.c 4835 I cut the code down to this: import

Re: Iterating over an enum associative array

2011-03-14 Thread bearophile
I am back. Nebster: I'm having some problems iterating over an enumerated associative array. It comes up with this error at compile time: Internal error: e2ir.c 4835 Added: http://d.puremagic.com/issues/show_bug.cgi?id=5734 Bye, bearophile