What is a Module ?
Various attempts to define this term, e.g.
- [Stevens/Myers/Constantine, 1974]
"A set of one or more contiguous program statements having a name by which other parts of the system can invoke it, and preferably having its own distinct set of variable names."
Problems:
- assemler macros, header files (e.g., in C, C++), Ada packages, etc. not included in this definition
- [Yourdon/Constanine, 1979]
"A module is a lexically contiguous sequence of program statements, bounded by boundary elements (e.g. begin...end, {...}), having an aggregate identifier"
Discussion in textbook p. 139 ff.