Apparently unsigned types really are necessary
Martin Nowak
dawg at dawgfoto.de
Sun Jan 22 08:24:10 PST 2012
On Sun, 22 Jan 2012 13:49:37 +0100, Jonathan M Davis <jmdavisProg at gmx.com>
wrote:
> One issue with unsigned integers right off the bat is for loops.
> for(size_t i = a.length; i > 0; --i) {}
> is not going to work.
What's not working with this?
Besides a neat idiom for reverse array indexing
for (size_t i = a.length; i--; )
writeln(a[i]);
More information about the Digitalmars-d
mailing list