next up previous contents
Next: 5. Version numbers Up: 4.3 Sharing of state Previous: 4.3.1 Sharing annotations   Contents

4.3.2 Sharing with the interactive system

The SML/NJ interactive system, which includes the compiler, is itself created by linking modules from various libraries. Some of these libraries can also be used in user programs. Examples are the Standard ML Basis Library $/basis.cm, the SML/NJ library $/smlnj-lib.cm, and the ML-Yacc library $/ml-yacc-lib.cm.

If a module from a library is used by both the interactive system and a user program running under control of the interactive system, then CM will let them share code and dynamic state. Moreover, the affected portion of the library will never have to be ``relinked''.


Matthias Blume
2001-07-19