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

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

Re: Declaring a local dynamic variable?


From: Barry Margolin
Subject: Re: Declaring a local dynamic variable?
Date: Fri, 20 Sep 2013 11:10:07 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.2569.1379688787.10748.help-gnu-emacs@gnu.org>,
 Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> Am 20.09.2013 14:30, schrieb Stefan Monnier:
> >> If I purposefully use a local dynamic variable as in:
> >
> > Use (defvar my-counter) at the file's top-level to indicate that this
> > variable is used in a way that relies on dynamic scoping.
> 
> A need to write code just to silence compiler warnings?
> Emacs could do better.

Other than "code", what would you suggest? A commenting convention to 
suppress warnings? But comments are removed by the reader, before the 
compiler gets to process the code.

-- 
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]