Hi!

I'm new to this list and also to Gambit. I'm trying to get used to it, and I like most of the things very much (taking into account that I'm new to Scheme).

I'm trying to use Black Hole module system, and I've found out something that I don't understand how it works or what I'm doing wrong.

If you have this scheme file, called for example "bhtest.scm"

(load "/usr/lib/modules/build")
(import (std srfi/14))


and you try to execute it with "gsc -i bhtest.scm", you'll get this:

*** ERROR IN "blackhole.scm"@3.2 -- Unbound variable: import


However, if you run "gsc", and write those 2 lines, everything will work as expected.


Then I figured out that with the option "-:s" it seems to understand the "import" macro, so the error turns into:

(load "/usr/lib/modules/build")
(import test-module)

*** ERROR IN #<procedure #2>, "/usr/lib/syntax-case.scm"@7821.33 -- unknown module test-module

(there is a test-module.scm file, of course, and this works again in interactive mode)

anyway, I don't really know what sense it makes to load the gambit syntax-case.scm when Black Hole is supposed to provide another one.


So, the point is: everything works in interactive mode as expected, but I can't run the same code from a file.


I would appreciate some help and/or clarifications, please.

Thank you,

Álvaro Castro-Castilla