Re-engineering global variables in Ada

Ricky E. Sward, A. T. Chamillard
2004 ACM SIGAda Ada Letters  
This paper describes one method for identifying global variables in Ada procedures and adding them to the parameter list of appropriate procedures. Global variables, ones that are visible to the entire program, are considered harmful to the maintainability of software systems because of the side effects that can result. A tool has been developed based on the Ada Semantic Interface Specification (ASIS) that can be used to identify global variables and re-engineer Ada procedures. By adding global
more » ... s. By adding global variables to the parameter lists of appropriate procedures, the variables can be removed from the globally visible data space and introduced into the local declaration space.
doi:10.1145/1046191.1032303 fatcat:dtfuecbwabev7b6ms73qllo774