Richard Shann writes:
> Given a C string that is the name of a Scheme variable what is the call
> I need to make from C to get the value?
>
> That is, in the Scheme I have
>
> (define foo "bar")
>
> Then in C I want to write
>
> SCM bar = scm_var_c_get_val ("foo");//imaginary function name
SCM
Thanks for all the replies - sorry I didn't spot that section of the
manual (perhaps because it came under "Using modules" and I haven't
dipped my toes in that stuff).
I have it working now.
Richard
On Fri, 2014-01-24 at 12:34 -0500, Mark H Weaver wrote:
> Richard Shann writes:
>
> > Given a C
On Fri, Jan 24, 2014 at 11:54 AM, Richard Shann wrote:
> Given a C string that is the name of a Scheme variable what is the call
> I need to make from C to get the value?
>
> That is, in the Scheme I have
>
> (define foo "bar")
>
> Then in C I want to write
>
> SCM bar = scm_var_c_get_val ("foo");
2014/1/24 Richard Shann :
> Given a C string that is the name of a Scheme variable what is the call
> I need to make from C to get the value?
[...]
i think it is all well described here:
http://www.gnu.org/software/guile/manual/html_node/Accessing-Modules-from-C.html
however, note that according
Given a C string that is the name of a Scheme variable what is the call
I need to make from C to get the value?
That is, in the Scheme I have
(define foo "bar")
Then in C I want to write
SCM bar = scm_var_c_get_val ("foo");//imaginary function name
strcmp ("bar", scm_to_locale_string (bar));