Subject: Re: basic question about packages
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 22 Aug 2003 04:57:49 -0500
Newsgroups: comp.lang.lisp
Message-ID: <1gOdndySzpGAdNiiXTWc-w@speakeasy.net>
Thomas A. Russ <tar@sevak.isi.edu> 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 "23.1.2.1 Examples of Effect of Readtable Case on the Lisp Reader",
and note that :invert *preserves* mixed-case symbols.


-Rob

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