Subject: Re: basic question about packages
From: (Rob Warnock)
Date: Fri, 22 Aug 2003 04:57:49 -0500
Newsgroups: comp.lang.lisp
Message-ID: <>
Thomas A. Russ <> wrote:
| But my code would be hosed anyway by having a different READTABLE-CASE,
| since the "defpackage" operator itself is written in lower-case.  If it
| didn't get translated into upper-case by the reader, loading the file
| wouldn't work anyway:  It wouldn't be recognized as the correct symbol
| anyway.

Uh... Have you not ever tried readtable-case :INVERT?  A lot of people
seem to like it as a default. And it doesn't mess up the reading of
"defpackage". [Of course, in :invert mode you can't say DEFPACKAGE...
well, you can *say* it, but..]

| That's why it would be nice to have some clean syntax for
| doing this, maybe something like
|    (use-readtable-case :preserve)

I think you will find :preserve to be very inconvenient compared to :invert.
See CLHS " Examples of Effect of Readtable Case on the Lisp Reader",
and note that :invert *preserves* mixed-case symbols.


Rob Warnock, PP-ASEL-IA		<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607