Slices are one of D's greatest assets, and now in D2 we have the new
foreach range statement: foreach(i; 0..22) { ... }

Wouldn't it be nice to introduce a built-in for these int..int ranges?

auto range = 0..22;
auto slice = array[range];
foreach(i; range) {...}

L.

Reply via email to