From: David Kastrup <dak@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: defvar'ing constants
Date: Sat, 25 Jun 2005 23:31:30 +0200 [thread overview]
Message-ID: <85y88yxgwd.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87slz7844t.fsf@vh213602.truman.edu> (Jay Belanger's message of "Fri, 24 Jun 2005 23:14:10 -0500")
Jay Belanger <belanger@truman.edu> writes:
> "Richard M. Stallman" <rms@gnu.org> 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
next prev parent reply other threads:[~2005-06-25 21:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 3:54 defvar'ing constants Juanma Barranquero
2005-06-25 0:31 ` Richard M. Stallman
2005-06-25 4:14 ` Jay Belanger
2005-06-25 13:05 ` Juanma Barranquero
2005-06-25 21:31 ` David Kastrup [this message]
2005-06-26 2:28 ` Jay Belanger
2005-08-01 1:39 ` Stephen J. Turnbull
2005-08-01 16:46 ` Richard M. Stallman
2005-06-25 12:59 ` Juanma Barranquero
2005-06-28 5:06 ` Stefan Monnier
2005-06-28 7:40 ` Juanma Barranquero
2005-06-28 21:29 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85y88yxgwd.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).