I get the point now. I'm so used to optimizing my loops that I didn't
consider somebody would actually put a dim inside a for-next loop.
So really, this should be checking for dims inside loops, rather than
every block.
--
Thom McGrath, <http://www.thezaz.com/>
"Only those who have the patience to do simple things perfectly will
acquire the skill to do difficult things easily." - Johann Freidreich
Von Schiller
On Apr 30, 2007, at 10:10 PM, Tim Hare wrote:
> Note, however, that there is overhead associated with DIM in that it
> initializes the variable; it isn't purely a scope thing. Dimming a
> variable
> inside a loop will add overhead to the loop and should be treated
> in the
> same way as other loop invariants - move them outside the loop.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|