
unloadmod - unload a module

Calling sequence:
unloadmod(string)
unloadmod()

Parameter:

string   --  string

Summary:

unloadmod removes the machine code of the given module string from
the main memory.  If unloadmod is called without arguments then it tries
to remove all modules.  With this, however, the variables defined through
loadmod or external are not changed and keep their values. unloadmod is
a function of the system kernel and returns the value DOM_NULL.

When calling a module function through one of the identifiers described above
the module code is automatically re-loaded into the main memory by the
module manager. In contrast to the function loadmod, no global identifier is
defined.

If a system error occurs during unloading unloadmod terminates the actual
evaluation with an error message.  An error also occurs if the user tries to
unload a static module.

>>  loadmod("stdmod"): unloadmod(): stdmod::date();

      "Fri Jun 17 13:06:54 1994"

See also:  external , loadmod

