[plt-dev] define-match-expander <-> unlib.plt doesn't compile

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Fri Nov 13 12:37:07 EST 2009

On 13 Nov 2009, at 16:26, Carl Eastlund wrote:
> On Fri, Nov 13, 2009 at 8:57 AM, Sam TH <samth at ccs.neu.edu> wrote:
>> On Fri, Nov 13, 2009 at 4:19 AM, Dave Gurnell  
>> <d.j.gurnell at gmail.com> wrote:
>>> [...] the second transformer procedure only works if eq? is in
>>> application position. Looking at the docs, I assume I want to use
>>> make-rename-transformer in some way but I can't work out how in this
>>> context.
>> Unfortunately, the result of `make-rename-transformer' isn't a
>> procedure (Matthew, could this be changed?), so you can't use it  
>> here.
> The (planet cce/scheme) package includes `redirect-transformer' for
> this purpose.  Just use (redirect-transformer #'eq?) and it will
> produce a transformer procedure that does the right work.

Thanks, Sam and Carl!

I've rewritten the forms using redirect-transformer and released the  
fixed code as Unlib 3.20.


-- Dave

Posted on the dev mailing list.