Are globals OK!?

: Hi!
: I seem to remember seeing a thread once upon a time, which
: suggested that the use of global variables was not such a good
: idea. Am I imagining things?
: I’m trying to weigh up the pros and cons of using a number of
: globals in a script. Here’s a snippet of what I use at
: present…
: drawObjects(pgW, pgH, horObj, verObj, blVal, guVal, blHd) – do
: stuff end
: This parameter list is likely to increase as I extend the
: functionality of this particular script. Is this good practice
: or should I use globals instead to save passing all these
: variables? Or maybe there’s another way…
: ANY information would be useful.
: Thanks,
: Juerg
I have used globals extensively in many of my scripts without any problems. I just learned how to use script objects to set up variables with the same set of properties (thanks to this group). See my thread “Create a Class” (or something like that) posted earlier this week.
Hope this helps, Brad Bumgarner