I'm testing if redefining of variables work in Scheme, tested this code in Gambit:
(let-values ((x (values 1 2 3))
(x (values 4 5 6)))
(display x)
(newline))
To see what will be the output. But Gambit throws an error:
Unbound variable: let-values
But I've checked the source and let-values is implemented. How to use this name in Gambit. It's probably related to libraries but I don't know how to use them in Gabmit.
I've tried:
(import gambit)
But got an error:
Unbound variable: import
I'm executing gambit with gsi file.scm
Using gambit 4.9.5:
It doesn't let you re-use identifiers in the bindings; R7RS says of
let-valuesthatFix that, and it works:
After doing some digging through git commit history, it looks like gambit added
let-valuesin April 2019, and the 4.9.3 you are using was released in February 2019. So using too old a version is responsible for the error you're getting about it not being defined/bound. If you'd been using a more recent instance you'd have run into the error addressed in the first part of this answer.