I have the function run in file run.scm. I want to make run available in test.scm. How would I go about doing this in Gambit scheme?
I've already tried (import "run.scm"), but it just complained about import being an unbound variable.
I have the function run in file run.scm. I want to make run available in test.scm. How would I go about doing this in Gambit scheme?
I've already tried (import "run.scm"), but it just complained about import being an unbound variable.
Copyright © 2021 Jogjafile Inc.
Gambit Scheme uses
includenotimport.Gambit Scheme does not come with modules as standard, for modules like you seem to be describing, you would have to use Black hole, which is an extension of Gambit and needs to be installed and loaded separately or Gerbil Scheme which is built on gambit (so is nearly as fast I guess though I have never used it). Another scheme based on Gambit Scheme with modules is LambdaNative, Which has a unique "external" module system, and is designed mainly for writing mobile applications.
So with files
run.scmandtest.scmin the same folder.......run.scm
test.scm
then from the interpreter (gsi)