[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: void variable
From: |
Richard Stallman |
Subject: |
Re: void variable |
Date: |
Wed, 28 Jul 2004 12:00:20 -0400 |
Maybe we could arrange for defvar to burp a warning if the var is currently
let-bound?
That sounds like a good idea. It should be possible to do this
by searching the specpdl.
Maybe we could arrange for defvar to burp a warning if the var is
currently
let-bound?
Just to be sure, I assume you mean a compiler warning?
This is a load-time occurrence; the compiler cannot detect it.
It would have to be detected at run time. The warning could
use display-warning.
defvar-ing
let-bound variables is OK for autoloaded variables.
The warning could be issued only when the global binding that was
shadowed by the let-binding was unbound. That will never be the case
for autoloaded variables.
It is also OK for
`(defvar foo)''s that are just there to pacify the compiler.
Yes, that case should not warn.
- Re: void variable, (continued)
- Re: void variable, Richard Stallman, 2004/07/27
- Re: void variable, Richard Stallman, 2004/07/25
- Re: void variable, Stefan Monnier, 2004/07/26
- Re: void variable, Lars Hansen, 2004/07/26
- Re: void variable, David Kastrup, 2004/07/26
- Re: void variable, Luc Teirlinck, 2004/07/26
- Re: void variable, Stefan Monnier, 2004/07/26
- Re: void variable, Luc Teirlinck, 2004/07/26
- Re: void variable, Luc Teirlinck, 2004/07/26
- Re: void variable, Luc Teirlinck, 2004/07/26
- Re: void variable,
Richard Stallman <=
- Re: void variable, Luc Teirlinck, 2004/07/28
Re: void variable, Richard Stallman, 2004/07/25