Running files from command-line vs. load'ing them

2008-12-27 Thread Daniel Kraft
Hi, I'm working on a project which defines a guile module in C and then uses this new interpreter for running some Scheme code. I have to admit that I'm relatively new to Guile, so I may well have done something completely wrong. However, everything seems to work quite fine. Unfortunatelly

Re: Running files from command-line vs. load'ing them

2008-12-28 Thread Daniel Kraft
Andy Wingo wrote: $ myguile -L .. program.scm ERROR: In procedure string-contains: ERROR: Wrong type argument in position 1 (expecting string): # I think this means that your extension missed a GC reference somewhere, and that a SCM that you have has been freed and replaced with a "winder". ("

defined? in module

2009-07-05 Thread Daniel Kraft
Hi, I'm trying to check if a given name is bound within some module. It seems (from the documentation) that module objects are considered environments; but this does not work: scheme@(guile-user)> (defined? 'abc (current-module)) Backtrace: In unknown file: ?: 0* [# #:1:0 ()>] 2: 1* [

Re: calling scheme procedures by name from C

2009-08-02 Thread Daniel Kraft
Linas Vepstas wrote: 2009/8/2 Mike Gran : Oh my oh my. I wrote that doc at lonelycactus.com quite awhile ago. I keep meaning to take it down, because the way I did things was a little strange and a little old. But, oddly, there are few other tutorial-level resources. Someone really ought to

Re: calling scheme procedures by name from C

2009-08-02 Thread Daniel Kraft
Linas Vepstas wrote: -- so does anyone know who wrote it and where/what it is meant to be? I don't get what you are saying ... at the bottom of your URL it says clearly: "I wrote this page because ... etc Copyright (c) 2000 David Drysdale Permission is granted to copy, distribute and/or modif