Deprecated language features
Jonathan M Davis
jmdavisProg at gmx.com
Thu Feb 2 18:19:28 PST 2012
On Friday, February 03, 2012 03:08:05 Marco Leise wrote:
> Am 02.02.2012, 18:53 Uhr, schrieb bearophile <bearophileHUGS at lycos.com>:
> > Ali:
> >> I think foreach_reverse and the associated opApplyReverse member
> >> function.
> >
> > I use it now and then. A possible replacement:
> >
> > foreach (i; 10 .. 0 : -1) {}
> >
> > Bye,
> > bearophile
>
> I agree. iterating in reverse over an array is common enough
retro makes it very easy.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list