This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

building lists with gh_load()


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. 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]