[plt-scheme] adding syntax transfomer to a namespace

From: Jos Koot (jos.koot at telefonica.net)
Date: Fri Dec 14 14:43:38 EST 2007

----- Original Message ----- 
From: "Matthew Flatt" <mflatt at cs.utah.edu>
To: "Dan Liebgold" <dan.liebgold at gmail.com>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Friday, December 14, 2007 4:41 PM
Subject: Re: [plt-scheme] adding syntax transfomer to a namespace


>  (define (add-binding name transformer)
>
>  (with-syntax ([name (datum->syntax #f name)])
>     (eval #`(define-syntax name #,transformer)))) 

Thanks, that's clear now. I should have figured that myself.
Jos


Posted on the users mailing list.