next up previous contents
Next: 2.6 Library components (groups) Up: 2. The CM model Previous: 2.4 Members of a   Contents

2.5 Name visibility

In general, all definitions exported from members (i.e., ML source files, sublibraries, and components) of a library are visible in all other ML source files of that library. The source code in those source files can refer to them directly without further qualification. Here, ``exported'' means either a top-level definition within an ML source file or a definition listed in a sublibrary's export list.

If a library is structured into library components using groups (see Section 2.6), then--as far as name visibility is concerned--each component (group) is treated like a separate library.

Cyclic dependencies among libraries, library components, or ML source files within a library are detected and flagged as errors.



Matthias Blume
2001-07-19