Signed-unsigned comparisons in Phobos

Marco Leise Marco.Leise at gmx.de
Fri Aug 12 06:49:01 PDT 2011


Am 12.08.2011, 14:55 Uhr, schrieb Marco Leise <Marco.Leise at gmx.de>:

> for (size_t i = x.length; i-- > 0; ) {...}

Actually this is probably better:

for (auto i = x.length; i > 0; )
{
     --i;
     ...
}


More information about the Digitalmars-d mailing list