husk-scheme
husk-scheme copied to clipboard
"expected variable, found (vector-ref tbl (car c))"
This program fails to run under huski, with the following error message:
Invalid type: expected variable, found (vector-ref tbl (car c))
However, the program works correctly under Chicken Scheme, Guile, MIT Scheme, and SISC (which is all of the Scheme implementations I've tried so far).
I know this is a somewhat long-ish program (135 lines), so I can try to put together a more minimal example if you want. Let me know if that would be helpful. Thanks!
Here is a simpler test case:
(define v (make-vector 1 (make-vector 1 "Goodbye, World!")))
(vector-set! (vector-ref v 0) 0 "Hello, World!")
(display (vector-ref (vector-ref v 0) 0))
(newline)