realbasic-nug
[Top] [All Lists]

Re: Merits of nested DIM (WAS re: [ANN] RB Code Reports version 1.3)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Merits of nested DIM (WAS re: [ANN] RB Code Reports version 1.3)
From: Thom McGrath <lists at thezaz dot com>
Date: Mon, 30 Apr 2007 22:41:35 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <NAEEKPONICFANBGONHNIAEBOEBAA dot tim at telios dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>