'int' is enough for 'length' to migrate code from x86 to x64

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 21 02:57:53 PST 2014


"bearophile"  wrote in message news:rqyuiioyrrjgggctfpcx at forum.dlang.org...

> Better (it's a workaround for a D design flaw that we're unwilling to 
> fix):
>
> foreach_reverse(immutable i, 0...a.length)
>

I know you feel that way, but I'd rather face the non-existent risk of 
accidentally mutating the induction variable than write immutable every 
time. 



More information about the Digitalmars-d mailing list