next up previous contents external
Next: Hidden global variables Up: Adding a new phase: Previous: Creating new resources

Avoiding global variables

 

Global variables in big projects such as PIPS should be avoided as much as possible since they are often the source of big trouble when many different modules are interacting and when the global state has not been proved to be safe. Two encapsulations are used in PIPS to provide global state keeping and enabling global options.




next up previous contents external
Next: Hidden global variables Up: Adding a new phase: Previous: Creating new resources

Ronan KERYELL
vendredi, 20 décembre 1996, 16:25:47 MET