unsigned int in for loops

Jesse Phillips jessekphillips+D at gmail.com
Fri Feb 4 12:31:06 PST 2011


Ellery Newcomer Wrote:

> I think this was the impetus for foreach_reverse, or at least it is one 
> place where it is pretty handy. Don't remember what all there is in D1, 
> but in D2 you could do something like
> 
> foreach_reverse(i; 0u .. 10u){
> // iterates over 9,8,7 .. 1,0
> }

There was some discussion about removing this... don't remember the conclusion. I believe it is also in D1 though.


More information about the Digitalmars-d-learn mailing list