In my last column, we successfully wrapped my native Text Query Language (TQL) application for processing natural language texts. That is, the application executed correctly, but I did make a number of subtle program design errors that I'd like to correct in this column. For those who haven't incised the code in memory, Figure 1 shows how we left it. The first problem is pretty trivial, but it would be embarrassing should the class be made generally available because all types within a module default to internal scope. That is, they can't be seen from outside the module. This is a good default because it prevents the global namespace of the application from being polluted by module-only types.
展开▼