Module

(module string) -> #f

When creating a module, it is important for MOSVM to know which modules have already been loaded (see import). Module defines the file as string--which may be any string, but by convention is the pathname of the file, without extension. This is done in order to keep each string unique. When import is given a module to load, it checks the module function at the beginning of the file, and aborts if it finds that module has already been loaded.

Example:
In "test.ms", found in the "lib" subdirectory of the standard package, you will find:

(module "lib/test")

See also: export, import