public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: "Will Newton" <will.newton@gmail.com>
To: cgen@sourceware.org
Subject: Passing args with nested pmacros
Date: Wed, 29 Aug 2007 13:57:00 -0000	[thread overview]
Message-ID: <87a5b0800708290657u2e08520fme16e81075b14cdf4@mail.gmail.com> (raw)

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,

                 reply	other threads:[~2007-08-29 13:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5b0800708290657u2e08520fme16e81075b14cdf4@mail.gmail.com \
    --to=will.newton@gmail.com \
    --cc=cgen@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).