[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UPPER CASE & lower case

> I have to deal with a case in which both Upper case and
> lower case alterntion has a significant meaning. 
> For example, 'Cat', 'CAT', 'cat' and even 'cAt' have to
> be distinguished from each other. The obvious problem is
> that MCL does not recognize this difference. 
> Now what should I do to teach this silly machine to recognize
> 'T' instead of 't'.
Unless you muck with the readtable [as previous responses suggested] 
typed in names of symbols are converted to upper case. You can prevent 
that from happening by surrounding your symbol with vertical bars. 
(symbol-name 'foo) => "FOO"
(symbol-name '|Foo| => "Foo"