4.3.3 The Build structure

loadObject

Function

Structure

Shell.Build

Type

val loadObject: string -> unit

Syntax

loadObject unit-name -> ()

Arguments

unit-name
A string naming a program unit. Must be given in the portable unit-location notation (see Section 4.3.2.1 on page 69).

Values

unit

Description

Loads the object-file version of the program unit unit-name into the interactive context.

If unit-name depends on any other units, the object files for those units are loaded too. However, only the top-level declarations in unit-name are added to the interactive context.

The object-file version of the unit must be called unit-name.mo to be recognized. There must also be object-file versions available of the units that unit-name depends on. If any of these object files does not exist, loadObject raises an exception.


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker