This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
building lists with gh_load()
- To: guile at sourceware dot cygnus dot com
- Subject: building lists with gh_load()
- From: Alexander Langer <alex at big dot endian dot de>
- Date: Wed, 15 Dec 1999 11:42:29 +0100
Hello!
I'm using libguile in a program as scripting language.
At the moment I have something like:
SCM
load_from_files_by_list(SCM list) {
if (list == SCM_EOL)
return SCM_EOL;
else
return gh_cons(gh_load(SCM_UCHARS(gh_car(list))),
load_from_files_by_list(gh_cdr(list));
}
I invoke it then with:
(define Filelist
(list "test1.scm"
"test2.scm"))
(load-from-files-by-list Filelist)
which *should* become a new list.
But, unfortunately gh_load _always_ returns SCM_UNSPECIFIED.
I Probably just don't know how to let a _file_ return a value in
libguile, so that the returned value of the file will be the value
of gh_load();
Can someone give me a hint?-)
Or is this impossible?
Thank you,
Alex
--
I doubt, therefore I might be.