[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining new character names?
From: |
Lynn Winebarger |
Subject: |
Re: defining new character names? |
Date: |
Wed, 21 Aug 2002 10:24:20 -0500 |
On Wednesday 21 August 2002 03:12, Lars J. Aas wrote:
> The most "transparent" solution
> would be to allow
>
> (define #\paren-close #\051)
>
> [If the first token looks like a character constant, the second must
> be one too?] Would that be possible to implement without any overhead
> on the define implementation? Would it break something?
Given the raging debate on this, I'll point out that Chez Scheme
has a function char-name that does this job.
(char-name #\space) => 'space
(char-name 'space) => #\space
(char-name 'sym) => #f
(char-name #\b) => #f
(char-name 'paren-close #\051) => unspecified
(char-name #\paren-close) => 'paren-close
Seems like a pretty good solution to me.
Lynn
- Re: defining new character names?, (continued)
- 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, 2002/08/27
Re: defining new character names?, Matthias Koeppe, 2002/08/20
Re: defining new character names?,
Lynn Winebarger <=
- Re: defining new character names?, Keith Wright, 2002/08/21
- Re: defining new character names?, Lynn Winebarger, 2002/08/21
- Re: defining new character names?, rm, 2002/08/21
- Re: defining new character names?, Lynn Winebarger, 2002/08/21
- Re: defining new character names?, Keith Wright, 2002/08/21
- Re: defining new character names?, Keith Wright, 2002/08/21
- Re: defining new character names?, Marius Vollmer, 2002/08/21
- Re: defining new character names?, Keith Wright, 2002/08/22
- Re: defining new character names?, Lynn Winebarger, 2002/08/22
- Re: defining new character names?, rm, 2002/08/22