[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating modules from C (was: On the deprecated auto-loading of comp
From: |
Matthias Koeppe |
Subject: |
Re: Creating modules from C (was: On the deprecated auto-loading of compiled-code modules) |
Date: |
14 May 2001 12:33:34 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 |
Thanks for all the useful explanations and suggestions.
>From Marius' message I had thought that I could leave out the whole
export business if I don't `scm_ensure_user_module', but I got this
obviously wrong.
I am now using `scm_ensure_user_module()' and a call to
`module-export!' via `scm_apply' in SWIG when building self-contained
Guile modules.
I had actually hoped there was a cleaner way to do module creation
_and_ symbol export from the C level; the call to `module-export!' is
a bit strange. (It looks as if it might change without notice in
later versions, and I would like to use the Recommended,
Never-Changing-Again method to deal with modules for SWIG.)
Even a very thin layer of C code would help a lot here; I would
suggest adding a function `scm_module_export_x(SCM module, SCM
list_of_symbols)' to `modules.h'. What do others think?
--
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe
- Re: On the deprecated auto-loading of compiled-code modules, (continued)
- Creating modules from C (was: On the deprecated auto-loading of compiled-code modules), Matthias Koeppe, 2001/05/09
- Re: Creating modules from C (was: On the deprecated auto-loading of compiled-code modules), Martin Grabmueller, 2001/05/09
- Re: Creating modules from C (was: On the deprecated auto-loading of compiled-code modules), Martin Grabmueller, 2001/05/09
- Re: Creating modules from C (was: On the deprecated auto-loading of compiled-code modules), thi, 2001/05/09
- Re: Creating modules from C (was: On the deprecated auto-loading of compiled-code modules),
Matthias Koeppe <=
- Re: Creating modules from C, Marius Vollmer, 2001/05/14
- Re: Creating modules from C, Rob Browning, 2001/05/14
- Re: Creating modules from C, Marius Vollmer, 2001/05/14
- Re: Creating modules from C, Dirk Herrmann, 2001/05/14
- Re: Creating modules from C, Alex Shinn, 2001/05/14
- Re: Creating modules from C, Marius Vollmer, 2001/05/14
- Re: Creating modules from C, Lars J. Aas, 2001/05/15
- Re: Creating modules from C, Marius Vollmer, 2001/05/15
- Re: Creating modules from C, Dirk Herrmann, 2001/05/14
- Re: Creating modules from C, Marius Vollmer, 2001/05/14