Mail Archives: djgpp/1998/03/29/10:16:53
In article <3515B2A7 DOT B238AA6B AT concentric DOT net>, "D. Huizenga"
<skis AT concentric DOT net> writes:
>Date: Sun, 22 Mar 1998 19:54:00 -0500
>
>A small note:
>
> Besides having the advantage of
> being able to access the variable outside of the
> loop, according to a previouse thread in this group
> the second way has the added advantage of being
> much faster than the first. If I remember coorectly,
> this is because the variable is declared only once,
> opposed to being declared newly each time the code
> goes back to the top of the loop.
>
>
The above caveat applies to NESTED loops, due to time to reallocate 2d index
over and over again. I don't believe it applies to the current example
- Raw text -