unsigned int in for loops

spir denis.spir at gmail.com
Fri Feb 4 11:16:33 PST 2011


On 02/04/2011 05:14 PM, eles wrote:
> recently i was hit by an old-known programming error, using unsigned int in for
> loops could get into infinite traps:
>
> http://stackoverflow.com/questions/665745/whats-the-best-way-to-do-a-reverse-
> for-loop-with-an-unsigned-index

Aha! was trapped as well recently.

denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list