Differentiating local and global variables:

One way I differentiate is that all of my local variables are related to *it*. I always name a local variable some variation of it, for example:

tit, wit, skit, pit, grit, twit, spit...

If I get confused and can't remember in a long handler if I've used one of the its, I move to itty.

itty, bitty, titty, witty, smitty

So at a glance, I know these are locals without appending an L or T or something.

Shari
--
Windows and Macintosh shareware games
BIackjack Gold
http://www.gypsyware.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to