On 7/15/05, Stefan Monnier <[EMAIL PROTECTED]> wrote:
> That seems to be the only real motivation (the others are more like "why not
> have it"?).
Well, I won't say that. It's more: "why not use them for the same uses
that they have in other languages". And moreover, having defconst's
which don't
On 7/16/05, Richard M. Stallman <[EMAIL PROTECTED]> wrote:
> This should go in the Emacs humor file.
I'll put in the file I'm going to add (some day or other) in etc.
Wrt constants, I'll drop the issue.
--
/L/e/k/t/u
___
Emacs-d
> Aren't user-defined constants useful in other languages?
the only user-defined constant is ignorance.
(with programmers, this is a variable concept. :-)
This should go in the Emacs humor file.
___
Emacs-devel mailing list
Emacs-devel@gnu
magnitude of the problem in practice is zero. It would be
more elegant in some conceptual sense if these symbols could not be
altered. But that would not translate into any benefit for Emacs
users, or for us Emacs maintainers.
No, that's "I assumed the value of real constants i
Juanma Barranquero <[EMAIL PROTECTED]> writes:
> Aren't user-defined constants useful in other languages?
the only user-defined constant is ignorance.
(with programmers, this is a variable concept. :-)
thi
___
Emacs-devel mailing list
Emacs-devel@gnu
> - True constants can prevent some kinds of problems.
That seems to be the only real motivation (the others are more like "why not
have it"?). I must say it's pretty vague. AFAICT in 99.9% of the cases
constants have the following uses:
- catch programming errors. This is similar to type ann
n error (and possibly crash Emacs)?
> No motive was mentioned for adding a primitive to set the flag except
> that the flag exists. That's "completeness' sake".
No, that's "I assumed the value of real constants in programming
languages was w
- True constants can prevent some kinds of problems.
- The Emacs code already uses true constants, like
`enable-multibyte-characters', and keywords. Was that for
completeness?
enable-multibyte-characters is not a constant. It is a special
builtin weird hack. Keywords are a sp
On 7/14/05, Stefan Monnier <[EMAIL PROTECTED]> wrote:
> There's no released Emacs with defvaralias, so it's still recent.
That is true, but seems a joke... :)
> No. But I could make `defvar' un-const a defconst if that's necessary.
Aha.
> These are hard-read-only so they can't be redefined wi
On 7/14/05, Richard M. Stallman <[EMAIL PROTECTED]> wrote:
> I don't want to introduce defining of "real constants" in Emacs.
That's your prerogative, of course.
> The motivation for the suggestion appears to be an idea of
> completeness.
No. It's not co
I don't want to introduce defining of "real constants" in Emacs.
It would be added complexity that we don't need, and that
as far as I can see does not serve a purpose.
The motivation for the suggestion appears to be an idea of
completeness. Emacs has a bit that makes a sym
> Yeah, I meant "trivial now", of course. But that's been in Emacs for
> what? Five years?
There's no released Emacs with defvaralias, so it's still recent.
>> Among the local patches I use, I've expanded this `constant' field to
>> 2 bits, so it can be either hard-read-only or soft-read-only (or
> This is *not* a proposed change for 22.1; more of a question about a
> feature, or lack of it.
> Having the possibility of marking a symbol as constant (not in the
> `defconst' sense, but really constant) seems so potentially useful and
> so trivial to implement (vide the attached patch), that I
On 7/13/05, Stefan Monnier <[EMAIL PROTECTED]> wrote:
> I believe it's mostly because it wasn't nearly as trivial/cheap until Gerd
> installed his defvaralias patch, which also introduced the `constant' field
> in symbols.
Yeah, I meant "trivial now", of course. But that's been in Emacs for
what?
This is *not* a proposed change for 22.1; more of a question about a
feature, or lack of it.
Having the possibility of marking a symbol as constant (not in the
`defconst' sense, but really constant) seems so potentially useful and
so trivial to implement (vide the attached patch), that I can only
15 matches
Mail list logo