Re: Real constants

2005-07-17 Thread Juanma Barranquero
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

Re: Real constants

2005-07-16 Thread Juanma Barranquero
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

Re: Real constants

2005-07-15 Thread Richard M. Stallman
> 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

Re: Real constants

2005-07-15 Thread Richard M. Stallman
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

Re: Real constants

2005-07-15 Thread Thien-Thi Nguyen
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

Re: Real constants

2005-07-14 Thread Stefan Monnier
> - 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

Re: Real constants

2005-07-14 Thread Juanma Barranquero
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

Re: Real constants

2005-07-14 Thread Richard M. Stallman
- 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

Re: Real constants

2005-07-14 Thread Juanma Barranquero
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

Re: Real constants

2005-07-14 Thread Juanma Barranquero
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

Re: Real constants

2005-07-13 Thread Richard M. Stallman
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

Re: Real constants

2005-07-13 Thread Stefan Monnier
> 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

Re: Real constants

2005-07-13 Thread Stefan Monnier
> 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

Re: Real constants

2005-07-13 Thread Juanma Barranquero
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?

Real constants

2005-07-13 Thread Juanma Barranquero
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