Modules
- Collection of slots
- Directory name for the source file, comment, revision number (for RCS), time of file-in.
- List of submodules
- postFileIn method for further initialization
|
Modules
In addition to being a collection of slots, a module contains some other
information: it names a directory (where to find the source file), a list of
submodules to be read in whenever it is read, and a postFileIn method to be run
after the module is read, to perform initializations. These data allow modules to be
organized hierarchically by subsystem. For example the smalltalk module includes
all the modules in the Smalltalk emulation system, and is contained in the
directory applications/smalltalk. (Directories are relative to the
environment variable $SELF_WORKING_DIR.)
The name of a module must be a valid Self unary selector; the same name
will used for the source file, with a .self suffix. The module object can be
accessed by sending a message with its name to modules.
|