Georg Wrede wrote:
Andrei Alexandrescu wrote:Consider:foreach (x; 1.0 .. 4.1) writeln(x); foreach_reverse (x; 1.0 .. 4.1) writeln(x);This sucks. foreach with interval for floating-point types should be disallowed.As long as you don't also remove the regular for loop with floating-point types.
Yah. Great, I'm glad to see that others think the same. Andrei