[DUG] for..loop

Sean Cross Sean.Cross at catalystrisk.co.nz
Tue Aug 7 16:06:31 NZST 2007


> p.s. has anyone else noticed that sometimes when you step through a for
> loop the counter actually counts down (in the debugger) (even if it set
> to count up).  This was the case sometimes in D6 if I recall correctly.
>

It's an optimisation thing.  Counting down to 0 is more efficient than counting up.

Sean



More information about the Delphi mailing list