[plt-dev] Re: macro-stepper and expand help function defined with define-for-syntax

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Fri Mar 20 13:11:50 EDT 2009

Chongkai Zhu wrote:
> If I put my macro in a helper function with define-for-syntax, then the 
> macro stepper will not show expansion of anything inside this macro
> For example,
> (define-for-syntax (f stx)
>  (syntax-case stx ()
>    ((_ p ...)
>     #'(begin p ...))))
> (define-syntax my-begin f)
> (my-begin (my-begin 1 2))
> Macro stepper with standard hiding won't show the expansion of the 
> inside `my-begin', or anything I put there. Is this a bug?

There's a bug, but it doesn't have anything to do with 
'define-for-syntax'. It has to do with begin-splicing in modules. I'll 
look into it.


Posted on the dev mailing list.