[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nested macros and intentional hygiene violation
- To: address@hidden
- Subject: Re: nested macros and intentional hygiene violation
- From: Bruce Hoult <address@hidden>
- Date: Fri, 13 Sep 2002 17:15:02 -0400
- Organization: TelstraClear
- References: <bruce-20A235.18305713092002@copper.ipg.tsnz.net> <3D82167D.293C9228@lucent.com>
- Sender: "Gregory T. Sullivan" <address@hidden>
- User-agent: MT-NewsWatcher/3.2 (PPC Mac OS X)
- Xref: traf.lcs.mit.edu comp.lang.dylan:14356
In article <3D82167D.293C9228@lucent.com>,
Gabor Greif <ggreif@lucent.com> wrote:
> Bruce Hoult wrote:
> >
> > Is the ?= hygiene violation indicator intended to allow a nested macro
> > to refer to bindings introduced by a surrounding macro, or only to
> > bindings in the top-level source code?
>
> I am inclined to say the former, but if I think of macro-introduced
> identifiers
> being hygienic (kind-of gensymed) it may be that they cannot be captured even
> with an unhygienic reference.
>
> So just introduce a macro biding using ?= and capture it using ?=.
That's worse than my current solution, because the user doesn't *expect*
all those bindings to appear, possibly shadowing other things they might
want to refer to in the ?body.
-- Bruce