[Top][All Lists]

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

Re: How to select a module in C (guile 1.3.4)

From: Richard Guenther
Subject: Re: How to select a module in C (guile 1.3.4)
Date: Fri, 15 Jun 2001 14:01:45 +0200 (CEST)

I now figured out how to use scm_register_module_xxx()
to bind my procedures to a new module. To have this
module used by following C code - and to have this C
code reside in another module I use
gh_eval_str("(define-module (glame-user))(use-modules (glame))");

but I still cannot figure out the correct module name for
the-scm-module which seems to contain call-with-current-continuation.
Its not (ice-9 scm)... grepped through the sources and found

Also as soon if I invoke (in console mode) scm_shell() the
glame-user module is no longer active and the glame module
is no longer used. How can I fix this?

Thanx again.


On Fri, 15 Jun 2001, Richard Guenther wrote:

> Hi!
> I need to know how to switch the current module in C,
> perferrably to the one in interactive mode which is:
> guile> the-module
> #<directory guile-user 401d6a10>
> Within C code I'm in the root module which happens to
> have f.i. call-with-current-continuation unbound and
> so is pretty useless for complex tasks (calling
> gh_eval_string/gh_eval_file). Also for presenting an
> interactive prompt (inside GUI) this is also not the
> "right" module.
> So whats the preferred way to do this? I'd like to
> stiff my program bindings into an own module and
> have all code executed by gh_eval_* use this module
> but operating in a private one. I see (maybe) how
> to do this with recent guile - but how can I do
> this with guile 1.3.4 (I tried to use scm_select_module()
> and scm_resolve_module() but for the latter I cant
> figure out the arg types...)
> Thanx, Richard.
> --
> Richard Guenther <address@hidden>
> WWW:
> The GLAME Project:
> _______________________________________________
> Guile-user mailing list
> address@hidden

Richard Guenther <address@hidden>
The GLAME Project:

reply via email to

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