I wrote the following example, in an attempt to experiment with R7RS libraries in Chibi Scheme 0.5.3:
(define-library (example hello)
(export hello-world)
(import (scheme base))
(begin
(define (hello-world) "hello, world")))…
In Chibi and CHICKEN, the following syntax-rules expression evaluates to a procedure:
(syntax-rules () ((_) #f))
Is this just an artifact of how these particular implementations are written? The Scheme language specs do not seem to call out…
Consider the following macro definition in R7RS scheme:
(define-syntax foo
(syntax-rules ()
((_ bar)
(begin
(define baz 42)
(define-syntax bar
(syntax-rules ()
((_) baz)))))))
I have loaded this…
In R7RS or chibi-scheme, is there a function I can call to get a list of symbols containing all bindings in the current scope?
As a comparison, in Python, I can use functions globals() and locals() to see what names are available in the current…
Anyone got any idea why chibi-scheme throws the error below while attempting to use the
chibi-loop up-from function:
ERROR: car: not a pair: #
ERROR in set-dk! on line 590 of file /usr/local/share/chibi/init-7.scm: cdr: not a pair:…
I've embedded chibi scheme into my C++ application and am trying to create a float vector with a size of 3 in scheme, and then get the individual values of that vector back into my c++ program, however when I attempt to do so I only get the correct…
The following site shows an sample of embedding chibi scheme into a c program:
http://synthcode.com/scheme/chibi/
/* construct a Scheme expression to eval */
obj1 = sexp_intern(ctx, "my-procedure", -1);
obj2 = sexp_cons(ctx, obj1,…
Can you get a struct * from the out parameter of a C function in Chibi Scheme?
I'm trying to get a struct archive_entry * from this C function:
int archive_read_next_header(
struct archive *archive,
struct archive_entry **out_entry);
In C…