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.


Regards.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to