public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Passing args with nested pmacros
@ 2007-08-29 13:57 Will Newton
  0 siblings, 0 replies; only message in thread
From: Will Newton @ 2007-08-29 13:57 UTC (permalink / raw)
  To: cgen

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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-29 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 13:57 Passing args with nested pmacros Will Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).