On Mon 05 Dec 2011 19:12, Stefan Israelsson Tampe <stefan.ita...@gmail.com> 
writes:

> (define-syntax info
>   (lambda (x)
>     (syntax-case x ()
>       ((_ x)
>         (pk (syntax-binding-info (syntax->datum #'x)))
>         #'#f))))

I agree with Ian that we should be operating on syntax objects here, not
on datums.  Also, what should the type of the return value be?  Racket
implies that it should be a procedure, no?

> and calling this in an example lead to
> (let-syntax ((a (lambda (x) #'#f)))
>       (info a))

Does it work on toplevel macros as well?

Regards,

Andy
-- 
http://wingolog.org/

Reply via email to