"bearophile" wrote in message news:puczjifnprbmbnufuohw at forum.dlang.org... > Then how is this code rewritten? > > foreach (immutable a; 1 .. 10) { > /* stmts */ > } int __key1 = 1; immutable immutable(int) __limit2 = 10; for (; __key1 < 10; __key1 += 1) { immutable immutable(int) a = __key1; /* stmts */ }