Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lower case Symbols

1 view
Skip to first unread message

nco...@bridgetrix.com

unread,
Jun 2, 2000, 3:00:00 AM6/2/00
to
Is there an easy way to get the reader to automatically read in symbols as
they're typed, and not automatically convert to uppercase, without using
escape characters.

I have a text file that I want to sort. An easy way is to surround it
by parentheses, read it in as a single list, and sort by, say,
string-lessp. When I do that, though, the output is all-caps. I could
read each line as a string. Any other ideas?

Thanks.

Neil

Neil Cohen
Bridge Trix
Producers of the Bobby Wolff Bridge Mentoring Series
Winner: American Bridge Teachers award for software of the year -1999
http://www.bridgetrix.com

Michael Hudson

unread,
Jun 2, 2000, 3:00:00 AM6/2/00
to
nco...@bridgetrix.com writes:

> Is there an easy way to get the reader to automatically read in symbols as
> they're typed, and not automatically convert to uppercase, without using
> escape characters.

Seomthing like:

* (let ((*readtable* (copy-readtable)))
(setf (readtable-case *readtable*) :preserve)
(read-from-string "foo"))
=>
|foo|
3

?

HTH,
Michael

--
I never realized it before, but having looked that over I'm certain
I'd rather have my eyes burned out by zombies with flaming dung
sticks than work on a conscientious Unicode regex engine.
-- Tim Peters, 3 Dec 1998

0 new messages