husk-scheme icon indicating copy to clipboard operation
husk-scheme copied to clipboard

"expected variable, found (vector-ref tbl (car c))"

Open mignon-p opened this issue 6 months ago • 1 comments

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!

mignon-p avatar Oct 15 '25 04:10 mignon-p

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)

mignon-p avatar Oct 18 '25 18:10 mignon-p