Quote:
Originally Posted by WhiteDragon
Right, without the 'temp.' before it, i becomes a global variable and causes all sorts of muck and crazy behavior!
Easy rule: always prefix your variables and function calls, either with this or temp.
This way it is very clear when you are actually working with global variables and functions (due to lack of prefix).
|
Oh man, and I
just got done kicking that habit because variables without "temp." looked nicer..