chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] quoted vectors in syntax rules


From: Sandra Snan
Subject: [Chicken-users] quoted vectors in syntax rules
Date: Fri, 02 Mar 2012 10:23:56 +0100
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 Emacs/23.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

I stumbled upon the following behavior:

(equal? '#(a b c) (vector 'a 'b 'c))
(define (f-test)
 '#(a b c))
(define-syntax s-test
 (syntax-rules ()
   ((test)
    '#(a b c))))

(f-test)
(s-test)

(equal? (f-test) (s-test))

What is the explanation for this puzzle?

Sandra



reply via email to

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