Passing args with nested pmacros
Will Newton
will.newton@gmail.com
Wed Aug 29 13:57:00 GMT 2007
Hi all,
I'm trying to simplify some cgen macros and I would like to be able to
to map a pmacro over a list, but also pass the pmacro some other
arguments. e.g.
(define-pmacro (sub-macro item arg) ...)
(define-pmacro (top-level top-level-arg)
(.map (.pmacro (list-item) (sub-macro list-item top-level-arg))))
But this doesn't look like it's possible because .pmacro's don't do
lexical scoping. Is there any way to do what I want?
Thanks,
More information about the Cgen
mailing list