Stuart McLachlan
stuart at lexacorp.com.pg
Wed Aug 11 17:47:36 CDT 2004
On 11 Aug 2004 at 14:24, Arthur Fuller wrote: > Lots of code is produced using > copy/paste. If the declaration is right above the loop or whatever, it's > simple to grab it along with the loop itself, for use elsewhere. And the > compiler sorts it all out anyway, so what you're really talking about is > readability for humans not machines. From that p.o.v., why should you > learn about a variable until immediately before it is used? > That's fine as long as the variable is only used in the one loop. Wnen the same variable appears in several parts of the same procedure , it's a bugger trying to go back and find it's first appearance (Don't tell me I should break all my procedures down into smaller ones. <grin>) -- Stuart