guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What replaces scm_register_module_xxx (Doc update?)


From: Dale P. Smith
Subject: Re: What replaces scm_register_module_xxx (Doc update?)
Date: Thu, 8 Aug 2002 10:21:03 -0400

On Thu, 8 Aug 2002 15:48:24 +0200
address@hidden wrote:

> Hello,
> 
> according to the docs one can put functions defined
> in C into a module by writing a custom initialisation
> function and registering it with 'scm_register_module_xxx'.
> Since this function seems to have been removed from guile,
> how am i supposed to put my functions into modules?

The new method is to use a .scm file that defines the module,
dynamically loads the compiled code, and then exports whatever you need.

Do do this from C you need to use scm_c_define_module and scm_c_export.

-Dale

-- 
Dale P. Smith
Senior Systems Consultant,      | Treasurer,
Altus Technologies Corporation  | Cleveland Linux Users Group
address@hidden            | http://cleveland.lug.net
440-746-9000 x339               |



reply via email to

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