unsigned int in for loops

Jonathan M Davis jmdavisProg at gmx.com
Fri Feb 4 12:47:15 PST 2011


On Friday 04 February 2011 12:31:06 Jesse Phillips wrote:
> 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.

I thought that foreach_reverse was already gone.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list