[Top][All Lists]

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

Re: Declaring a local dynamic variable?

From: Andreas Röhler
Subject: Re: Declaring a local dynamic variable?
Date: Fri, 20 Sep 2013 18:34:38 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

Am 20.09.2013 17:10, schrieb Barry Margolin:
In article <address@hidden>,
  Andreas Röhler <address@hidden> 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?

In the precise case: just drop that warning.

In a wider sense, IMO a modular approach is better.
Restrict compiler warnings to obvious errors, don't mix style questions in.

Encourage use of style-checkers instead.


reply via email to

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