[plt-scheme] eval & syntax-rules

From: Skeptic . (skeptic2000 at hotmail.com)
Date: Tue Apr 20 12:13:33 EDT 2010

Why something like this works :
#lang scheme(define t 9)(let ([t 2])    (eval t (make-base-namespace)))-> 2
but not something like this :
#lang scheme
(define a 4)(define b 5)(define c 6)
(define-syntax test  (syntax-rules ()    [(test id ...)     (eval '(id ...) (make-base-namespace))]))
(test a b c)->  reference to a unidentified identifier : a  
Obtenez la version mobile de Messenger ici
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100420/05ef1bca/attachment.html>

Posted on the users mailing list.