Attach a module environment locally or globally
attach_module(all, operators, name, mod_env, parent)
logical specifying whether to attach the whole module
logical specifying whether to attach operators
the module name
the module environment to attach
the module parent environment
If neither all
nor operators
are TRUE
, this function
does nothing. Otherwise, it will either attach the whole module environment
or the operators it exports. Attaching is done by inserting the module at the
first position into the parent environment chain.