there is a regression for foreach on a tuple:
struct test {
int foo;
float bar;
}
void main() {
test t;
pragma(msg, typeof(t.tupleof).stringof);
foreach (entry; t.tupleof) {
pragma(msg, typeof(entry).stringof);
}
}
with DMD 1.024 the output is correct:
(int, float)
int
float
However, with DMD 1.033 it's not:
(int, float)
int
int
I don't have any versions between if someone does, please check for earlier versions :)
Comment #1 by jarrett.billingsley — 2009-07-06T14:28:44Z
This works fine in 1.039. Can anyone else confirm?