[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining new character names?
From: |
Matthias Koeppe |
Subject: |
Re: defining new character names? |
Date: |
Tue, 27 Aug 2002 17:09:44 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.80 (sparc-sun-solaris2.7) |
address@hidden writes:
> On Wed, Aug 21, 2002 at 10:51:38AM +0200, Matthias Koeppe wrote:
>> If you want to create a named constant, you simply do
>>
>> (define error-message "Error")
>> (define scaled-pi 314159265)
>
> No. 'error-message' is not constant after that:
>
> (set! error-message 'moep?)
Don't do that then. (What was your point?)
A named constant simply is a variable that you promise not to change.
I proposed a DEFINE-CONSTANT special form that makes the promise more
explicit.
Regards,
--
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe
- defining new character names?, Lars J. Aas, 2002/08/19
- Re: defining new character names?, Marius Vollmer, 2002/08/19
- Re: defining new character names?, Keith Wright, 2002/08/20
- Re: defining new character names?, Keith Wright, 2002/08/21
- Re: defining new character names?, Lars J. Aas, 2002/08/21
- Re: defining new character names?, rm, 2002/08/21
- Re: defining new character names?, Matthias Koeppe, 2002/08/21
- Re: defining new character names?, Lars J. Aas, 2002/08/21
- Re: defining new character names?, rm, 2002/08/21
- Re: defining new character names?,
Matthias Koeppe <=
Re: defining new character names?, Matthias Koeppe, 2002/08/20