[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Module system documentation
From: |
Marius Vollmer |
Subject: |
Re: Module system documentation |
Date: |
06 May 2001 02:28:11 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Martin Grabmueller <address@hidden> writes:
> > That would be extremely helpful. i.e. how do I create a module from C
> > and then place symbols into it, etc.
>
> If anyone with module system wisdom could make a summary of what is
> worth to know, I would most happily extend it and add it to the GRM,
> but I'm too clueless to do it myself.
>From the top of my head:
- at any one time, there is a `current' module (but see below).
- new bindings made with scm_make_gsubr or scm_sysintern are placed
into this module.
- you can make a module current with a call to scm_set_current_module.
- scm_set_current_module returns the previously current module, which
you should use to reset the current module eventually.
- you can make a new module with scm_make_module. The name is a
regular SCM list of symbols. When there already is a module with
the given name, it is returned, however scm_make_module will not
load a modules definition from disk.
- scm_resolve_module will load a module from disk