[plt-scheme] MzLib's unitsig.ss

From: Taylor Campbell (campbell at evdev.ath.cx)
Date: Sun Jan 19 23:41:22 EST 2003

Is it possible to use macros in a unit/sig?


(define-signature sig^ (my-macro))

(define unit@
  (unit/sig sig^

    (define-syntax my-macro
      (syntax-rules ()
        ((_ . ?pattern)
         (foo '?pattern))))))

(which doesn't work -- the example was only to show what I wanted to do)

Or do I have to do something special with the signature?

Or can I simply not do this?

Posted on the users mailing list.