Guile.ModuleSourceresolve name finds the module named name and returns it. When it has not already been defined, try to auto-load it. When it canโt be found that way either, create an empty module.
with_current_module ~modl f calls f and makes module modl the current module during the call.
lookup_variable ~modl name finds the variable bound to the symbol name in the public interface of the module modl.
modl should be a space separated string of module names
lookup ~modl name finds value of the variable bound to the symbol name in the public interface of the module modl.
Throws a Guile exception if not found.
modl should be a space separated string of module names
is_defined ~modl name returns true if name is defined in the module modl or the current module when module is not specified; otherwise return false.
define_module modl f defines a new module named modl and makes it current while f is called. Returns the module modl.
define name vl binds the symbol indicated by name to a variable in the current module and set that variable to vl. When name is already bound to a variable, update that. Else create a new variable.
export name adds the bindings designated by name to the public interface of the current module.