[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: upper and lower case code
- To: clisp-list <firstname.lastname@example.org>
- Subject: Re: upper and lower case code
- From: Jonas Kvist <email@example.com>
- Date: Wed, 10 Apr 1996 11:14:24 +0200
- Organization: Dept. of Computer and Information Science, Linkoping University
- References: <9604100012.AA17272@shakey>
- Sender: firstname.lastname@example.org
Dan Stanger wrote:
> i have a program where a function is called with mixed case symbols
> for example
> (f 'And 'Holdall)
> clisp seems to upcase it. it works correctly if i enclose it in bars.
> (f '|And| '|Holdall|)
> is there a way to have clisp recognize the case of symbols?
> dan stanger
That is because clisp is case-insensitive, and treats all its symbols as
uppercase, *unless* they are specified to be treated as special
characters, as lowercases, spaces etc. This is done by placing a \ in
front of that character, or surrond a sequence of characters with | as
you have done.
You can recognize the case of characters with the predicates
upper-case-p and lower-case-p.
------ <<<<<<< ((((((( OOOOOOOOOO ))))))) >>>>>>> ------
Bjornkarrsgatan 13A:13 Phone: +46 (0)13 17 74 28
582 51 Linkoping E-mail: email@example.com
Sweden URL: http://www-und.ida.liu.se/~c93jonkv/