Skip to Content Java Solaris Communities Partners My Sun Sun Store United States Worldwide

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs

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.

[ Previous ] [ Index ] [ Next ]
Would you recommend this Sun site to a friend or colleague?
Contact About Sun News Employment Privacy Terms of Use Trademarks Copyright 1994-2008 Sun Microsystems, Inc.