4.3.3 The Build structure

loadSource

Function

Structure

Shell.Build

Type

val loadSource: string -> unit

Syntax

loadSource 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 source-file version of unit-name (unit-name.sml) into the interactive context. This entails compiling the top-level declarations in unit-name.sml, but MLWorks does not write an object file for it.

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

If MLWorks cannot find unit-name.sml, it looks for the object file unit-name.mo instead (and so on for any depended-upon units).


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker