[plt-scheme] Units and macros
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
>
>