[plt-scheme] macrophases
At Sun, 4 Apr 2004 17:28:46 -0400, "Anton van Straaten" wrote:
> To be able to reuse the function make-prefixed-id in three places in the
> define-class macro, I resorted to a separate module, imported with
> require-for-syntax. This works fine. Before that, I tried a number of ways
> to include the function definition within the define-class macro. But since
> make-prefixed-id is used at multiple levels - including within a macro
> generated by the top-level macro - it seems that to make this work, a trick
> would be needed that I don't know. Is there such a trick?
There's no such trick.
If we ever get `begin-for-syntax', then you could at least put the
definition in the same module. But because the function is used by a
macro-generated macro, the function needs to be defined in some
module's top level.
Matthew