[Top][All Lists]

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

Re: Creating New Scope

From: Volkan YAZICI
Subject: Re: Creating New Scope
Date: Wed, 1 Nov 2006 00:05:54 +0200
User-agent: Mutt/

On Oct 31 09:43, Neil Jerram wrote:
> I'm not sure what you mean by a new scope in C code.  C code must
> always obey C's rules, of course.
> Perhaps you mean that the C code has some Scheme code that it wants to
> eval, but that it doesn't want it to make any lasting bindings.
> Then I guess you could do something like
>   scm_eval_string (scm_string_append (scm_list_3
>      (scm_from_locale_string ("(let () "),
>       scm_from_locale_string (code_to_eval),
>       scm_from_locale_string (")"))));

Yeah, this is exactly what I want to do but the problem is, after "(let
" I've some SCM values that I want to define in the inner scope. And the
problem is I don't have an idea about how can I turn them into suitable
string forms to place in the above scm_from_locale_string(...) string.


reply via email to

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