[Issue 9570] Wrong foreach index implicit conversion error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 21 13:59:30 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=9570

--- Comment #10 from Lionello Lunesu <lio+bugzilla at lunesu.com> ---
I also misread. 

The problem here is that the internal iterator (the one named __key##, declared
by the compiler) needs to be able to count to 256 inclusive (for the comparison
the be false and terminate the for.) There's no reason why the internal
iterator and the declared one are the same type (in fact, they need not be),
but at the moment the compiler uses the declared type for both the declared
iterator and the internal one.

It's an unrelated fix.

--


More information about the Digitalmars-d-bugs mailing list