Feb-04-2017, 11:38 AM
When you are using global variables in a local scope, you are cross scope boundaries. This can become confusing and hard to track. If you run into a problem with the values of a and b, it can be harder to figure out where a and b are being modified. If you are passing them around as parameters and return values, it becomes easier to track down where they might get modified.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures