Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 Cleanup global variables.

open
nobody
None
5
2012-08-14
2007-10-19
Rick McGuire
No

There are way too many global variables in the interpreter. These need to be cleaned up and organized. In the 4.0 code base, I started organizing these by determining whether these were portable values or platform specific. Portable values were added as protected static members to an Interpreter class with appropriate methods controlling access. Platform-specific values were managed the same way by creating a SysInterpreter class that did the same thing. This eliminated a lot of "include file grunge" and placed a clearer level of ownership and control over the global data.

Discussion


Anonymous


Cancel   Add attachments