'int' is enough for 'length' to migrate code from x86 to x64
Marco Leise via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 21 12:22:03 PST 2014
Am Fri, 21 Nov 2014 11:24:37 +0000
schrieb "bearophile" <bearophileHUGS at lycos.com>:
> Walter Bright:
>
> > I thought everyone hated foreach_reverse!
>
> I love it!
>
> Bye,
> bearophile
Hey, it is a bit ugly, but I'd pick
foreach_reverse (i; 0 .. length)
anytime over
import std.range;
foreach (i; iota(length).retro())
--
Marco
More information about the Digitalmars-d
mailing list