List Info

Thread: Passing args with nested pmacros




Passing args with nested pmacros
user name
2007-08-29 08:57:39
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,

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )