[Top][All Lists]

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

Re: gh_define() and gh_eval_str()

From: Marius Vollmer
Subject: Re: gh_define() and gh_eval_str()
Date: 22 Jul 2001 21:49:45 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Federico Di Gregorio <address@hidden> writes:

> another little question: it is possible to somewhat create an
> environment and then have gh_eval_str() compile code closing on that
> environment?

You can use `scm_c_call_with_current_module' to invoke gh_eval_str
while a given module is current.  To create a module, use

For example

    SCM module;

    module = scm_c_define_module ("foo bar", NULL, NULL);
    scm_c_call_with_current_module (module, gh_eval_str, "...");

reply via email to

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