external
-- create a module
function environmentexternal
("mstring", "fstring")
returns the
function environment of the module function
mstring::fstring
.
external("mstring", "fstring")
"mstring" |
- | the name of a module: a character string |
"fstring" |
- | the name of a module function: a character string |
a function environment of type
DOM_FUNC_ENV
.
loadmod
, module::new
, unloadmod
external
("mstring", "fstring")
creates
and returns the function environment of the module function
mstring::fstring
.mstring.mdg
containing
MuPAD objects that are loaded and bound to the module function
environment. If an error occurs while loading these objects, a warning
is displayed. MuPAD keeps trying to load them at each subsequent
call of module functions affected by it.external
, a module function can be accessed
without loading the module explicitly and without creating the module
domain. If such a module function is executed, its machine code is
loaded automatically if necessary.Some module functions may only work correctly if
their module domain was created before. Such modules must be loaded
with loadmod
before any of their module functions are
executed. Refer to the documentation of the corresponding module.
external
is a function of the system kernel.Module function environments can be stored in local or global variables. They can be used to execute module functions without loading the module explicitly:
>> where := external("stdmod", "which"): where("stdmod")
"/usr/local/mupad/linux/modules/stdmod.mdm"
>> delete where:
external
, loadmod
and unloadmod
provide basic features
for accessing modules. Extended features are available with the
module
library.