Documentation for compunit use

Documentation for compunit use, assembled from the following types:

language documentation Modules

From Modules

(Modules) compunit use

use loads and then imports from a compunit at compile time. It will look for files that end in .pm or .pm6. See here for where the runtime will look for modules.

use MyModule;

It is equivalent to:

need MyModule;
import MyModule;

See also Selective Importing to restrict what you import.