[plt-scheme] Units and macros

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sun Dec 7 18:37:35 EST 2008

As suggested my Matthew, only syntax-local-introduce the export signature:

(define-syntax (with-ring stx)
 (syntax-case stx ()
   [(_ ring-unit expr ...)
    #`(let ()
        (define-values/invoke-unit ring-unit
          (import) (export #,(syntax-local-introduce #'ring^)))
        expr ...)]))

Chongkai


Jens Axel Soegaard wrote:
> Hi all,
>
> Below the macro with-ring doesn't give the result I want.
> The macros with-ring-ver2 and with-ring-ver3 give the
> correct result, but are actually correct?
>
> /Jens Axel
>
>



Posted on the users mailing list.