I have this R7RS library written in a file "mylib.sld":
(define-library (example mylib)
(import (scheme base)
(scheme write))
(export f g)
(begin
(define (f x)
(+ x 1))
(define (g x)
(display "The answer is: ")
(display (f x))
(newline))))
To use the library above in the MIT Scheme REPL, I tried:
$ mit-scheme
1 ]=> (load "mylib.sld")
1 ]=> (import (example mylib))
However, the (import ...) fails. Apparently "import" is not available in
the REPL. Is that a bug? Is there a way to import an R7RS library for
use in the REPL?
MIT Scheme version: 11.2
Best regards,
Sam