unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Guile 1.4 & C?
@ 2003-02-24 18:13 Robert Uhl <ruhl@4dv.net>
  0 siblings, 0 replies; only message in thread
From: Robert Uhl <ruhl@4dv.net> @ 2003-02-24 18:13 UTC (permalink / raw)


I've a quick question for the list; the Guile docs I have and the
libguile headers are not being as helpful as I'd like.

I want to execute and get the result of the following snippet of code
from C:

(use-modules (mylib part1) (mylib part2))
(eval (load "a-file"))

For various reasons, I need to pass it over to Guile as a string.
What's the appropriate way to do this?  I could build up a list and call
scm_eval() on it, but that seems like a _lot_ of work.  Perhaps there's
an analogue to more recent versions' scm_c_eval_str()?

-- 
Robert Uhl <ruhl@4dv.net>
Virtues foster one another; so too, vices.  Bad English kills trees,
consumes energy, and befouls the Earth.  Good English renews it.
                                   --The Underground Grammarian


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-24 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 18:13 Guile 1.4 & C? Robert Uhl <ruhl@4dv.net>

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).