emacs-devel
[Top][All Lists]
Advanced

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

Re: Why are there two dolist?


From: David Kastrup
Subject: Re: Why are there two dolist?
Date: Wed, 12 Aug 2009 10:45:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Lennart Borgman <address@hidden> writes:

> On Wed, Aug 12, 2009 at 12:14 AM, Lennart
> Borgman<address@hidden> wrote:
>> And shouldn't they say that you do not have to intern/declare VAR?
>
> - There is one definition in subr.el and one in cl-macro.el. (I think
> I said this before.)
>
> - And I meant it should say that the variable is let bound inside
> dolist, ie there is a (let ((VAR ...) inside the defmacro dolist. That
> is not clear to from the doc string. The word "bound" there could
> equally well mean that (setq VAR ...) was used.

No.  Binding and setting a variable are fundamentally different things
and not interchangeable.  While there is a small bit of overlap in
current Emacs (because of its dynamic binding implementation), with
regard to language idioms the concepts are clearly separate, and with a
lexically binding Lisp variant (which we might get some day) the
semantics are even more separated.

-- 
David Kastrup





reply via email to

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