[Tutor] Global scope

Jeff Shannon jeff@ccvcorp.com
Mon Feb 3 19:27:01 2003


Pete Versteegen wrote:

>If I define a module with all of the variables/lists and import it in each
>function that requires a variable/list from that module, would that work?
>  
>

Yes, but it's likely to lead to a rather ugly solution.  You probably 
are much better off if you invest the time and effort to convert the 
global variables and the functions that operate on them into a set of 
classes.  You'll end up with something that's *much* easier to 
understand (and thus easier to extend, maintain, and use).

Jeff Shannon
Technician/Programmer
Credit International