This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Passing args with nested pmacros


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]