makealias, exploden, print-invert-case -- case sensitivity problem
Subject: makealias, exploden, print-invert-case -- case sensitivity problem
From: amundson at fnal
Date: Sat, 27 Nov 2004 22:10:21 -0600
----- Original Message -----
From: Robert Dodier <robert_dodier at yahoo>
Date: Friday, November 26, 2004 3:48 pm
Subject: makealias, exploden, print-invert-case -- case sensitivity problem
> Hello Maximists,
>
> I don't pretend to understand the ins and outs of the
> case sensitivity issue and recent changes to the source
> code to address case sensitivity. So I'll just report this
> one bit of strangeness that I've run into.
>
> print-invert-case appears to change uppercase, lowercase,
> and mixed-case to lowercase.
No, at least, not as far as I can tell.
> e.g., (print-invert-case 'foo),
> (print-invert-case 'FOO), and (print-invert-case 'Foo) all
> yield "foo".
I am afraid you are confused. Those are all lisp commands. The Lisp reader will convert all of the characters in each of those examples to upper case. You therefore have the same example repeated three times. Since the symbol 'FOO is all upper-case, print-invert case properly converts it to lower case. In order to do what you seem to think you were doing, you would have to use '|foo|, '|Foo|, etc.
--Jim