unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile's eval from C
@ 2002-09-29 20:55 Viktor Pavlenko
  2002-09-30 16:47 ` Rob Browning
  2002-09-30 18:38 ` Neil Jerram
  0 siblings, 2 replies; 4+ messages in thread
From: Viktor Pavlenko @ 2002-09-29 20:55 UTC (permalink / raw)


Hello and sorry for the simple question.

I'd like to evaluate an SCM object from C, equivalent to

guile> (eval '(car '("a" "b" "c")))
"a"
guile> (eval "a")
"a"

Looks like the best way is to call gh_call1(), but how do I get an SCM
object for guile's eval? I could also build a C string containing the
complete expression to be evaluated ( "(eval '(car '("a" "b" "c")))" )
and call gh_eval_str() but this seems inefficient because I have the
expression to be evaluated as SCM object.

Thank you in advance.

Viktor


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-30 19:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-29 20:55 guile's eval from C Viktor Pavlenko
2002-09-30 16:47 ` Rob Browning
2002-09-30 18:38 ` Neil Jerram
2002-09-30 19:36   ` Viktor Pavlenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).