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

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

Re: What's the difference between (defvar foo) and (declare (special foo


From: Dmitry
Subject: Re: What's the difference between (defvar foo) and (declare (special foo)), with lexical-binding on?
Date: Sun, 27 Jul 2014 12:00:31 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> (declare (special foo))
>
> is a hack defined in CL.  It predates lexical-binding and I don't
> think anyone has tried to adapt it to lexical-binding, so I don't know
> what it does in the case of lexical-binding.

Thanks! So, you would advise not to use it in lexical-binding code at
all?

I think the biggest problem with it is it sorta-works-but-not-exactly.



reply via email to

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