[plt-scheme] local special syntax confusion

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Wed Jan 2 19:02:07 EST 2008

Psy-Kosh skrev:
> A bit confused about locally redefining special syntax like #%app
> 
> What I mean is this:
> 
> (let-syntax ((#%app
>               (syntax-rules ()
>                 ((_ a b) (+ a b)))))
>   (3 5))
> 
> Produces 8 no problem.
> 
> on the other hand,
> 
> (define-syntax (blah stx)
>   (syntax-case stx ()
>     ((_ exp)
>      (with-syntax
>          ((#%app (datum->syntax-object #'exp '#%app)))

Did you mean #'%app instead of '#%app ?


-- 
Jens Axel Søgaard



Posted on the users mailing list.