emacs-devel
[Top][All Lists]
Advanced

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

Re: defvar'ing constants


From: David Kastrup
Subject: Re: defvar'ing constants
Date: Sat, 25 Jun 2005 23:31:30 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Jay Belanger <address@hidden> writes:

> "Richard M. Stallman" <address@hidden> writes:
>
>>     For consistency:
>>
>>       (defvar CONSTANT)               ; should work
>>       (defvar CONSTANT ITS-VALUE)     ; should work
>>       (defvar CONSTANT OTHER-VALUE)   ; should fail
>>
>> I think it is more consistent to make them all errors.
>> defvar should not be used on these symbols.
>
> If a constant is defined in one file but used in a second, is there
> then a way of quieting the compiler when the second file is
> compiled?

(defconst CONSTANT)

would appear to be a nice form for doing that.  It is not valid right
now.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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