chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] CSI and CSC do not do the same for syntax definitions


From: obscuroloconato
Subject: [Chicken-users] CSI and CSC do not do the same for syntax definitions
Date: Tue, 17 Jan 2012 10:35:05 +0100

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"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]