DMD supports ranges in foreach for more than a month, but I still cannot find any docs or at least examples of the range syntax. Lots of syntaxes were discussed and it's absolutely not obvious which of them actually got into the compiler. Is this page still relevant? http://ssli.ee.washington.edu/~aalexand/d/tmp/std_range.html