I have two files which are run correctly by the interpreter but the
compiled version fails to run:

$ csi -i -s x.scm
x
y

$ csc x.scm && ./x
x

Error: unbound variable: y

Is this the intended behavior?

This is x.scm:

(define-syntax x
  (syntax-rules ()
    ((_) (display "x\n"))))
(load "./y.scm")
(x)
(y)

And this is y.scm:

(define-syntax y
  (syntax-rules ()
    ((_) (display "y\n"))))

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to