[plt-scheme] transformer binding

From: David Van Horn (dvanhorn at cs.uvm.edu)
Date: Wed May 7 00:57:50 EDT 2003

I'm probably missing something obvious here, but how do I bind f in g's
transformer environment here?  TIA.

(module z mzscheme
  (define (f x) x)
  (define-syntax (g stx)
    (syntax-case stx ()
      ((_ e)
       (datum->syntax-object stx (f (syntax-object->datum #'e))))))
  )

-d



Posted on the users mailing list.