help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put this in a macro


From: Barry Margolin
Subject: Re: How to put this in a macro
Date: Tue, 04 May 2010 15:45:07 -0000
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article 
<20cf62c9-76ef-47c7-b9e4-edcc4b99b560@u34g2000yqu.googlegroups.com>,
 José A. Romero L. <escherdragon@gmail.com> wrote:

> On 17 Kwi, 18:49, Barry Margolin <bar...@alum.mit.edu> wrote:
> (...)
> > > Hmm, be careful with lets inside macros - this will work OK until one
> > > of the variables you try to set is named precisely "temp" (no lexical
> > > scope, remember?).
> >
> > Another reason why his version should be a function.
> (...)
> 
> I don't think that would make any difference - let binds the same in
> functions as it does in macros.

Right.  You even mentioned non-lexical scoping, although that's actually 
irrelevant when it's a macro.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]