guile-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]