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

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

Re: To `boundp' or not to `boundp'?


From: Barry Margolin
Subject: Re: To `boundp' or not to `boundp'?
Date: Wed, 02 Sep 2015 16:00:07 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.410.1441212753.19560.help-gnu-emacs@gnu.org>,
 Michael Heerdegen <michael_heerdegen@web.de> wrote:

> Alexander Shukaev <haroogan@gmail.com> writes:
> 
> > I also see
> >
> > > Note that if `lexical-binding' is in effect, this refers to the
> > > global value outside of any lexical scope.
> >
> > in the documentation of `boundp'.  Isn't it a big difference?
> 
> That's a difference.  But testing lexical variables for whether they are
> bound is a rare use case (is it one at all?).  I mean, when you are
> interested in the binding of a variable that might not be bound
> (defined), that variable will typically be special, or not bound at all,
> i.e., not lexically bound in any case.

In Common Lisp it's not even possible for a lexically-bound variable to 
be unbound. I'm not sure whether Emacs Lisp has a way to do it or not.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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