[Top][All Lists]

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

[Gcl-devel] Re: case insensitivity issue for package names

From: Camm Maguire
Subject: [Gcl-devel] Re: case insensitivity issue for package names
Date: 09 Aug 2005 01:45:28 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings, and thank you so much for this proposed fix!

It has been on our ansi todo list for some time to implement readtable
case.  If this issue is truly orthogonal to the one below, I think
your suggestion is fine -- otherwise perhaps it should be part of a
more systematic case sensitization?  These comments are from someone
who has not studied the issue yet at all :-).

Take care,

Robert Boyer <address@hidden> writes:

> Matt notes that package lookup in all versions of GCL ignores case, and that
> is wrong, e.g.,
>   (make-package "foo" :use nil)
>  followed by
>   (find-package "FOO") 
>  yields  
>   #<"foo" package>
> I believe this bug is easily fixed by changing the one file o/package.d in
> the following ways:
> 1.  Replace all occurrences of member_string_equal with member_string_eq.
> 2.  In the function designate_package, replace the occurrence of string_equal
>     with string_eq.
> The use of the identifier "string_eq" is less than perfect aesthetically.  It
> would better be "string=", but probably that is not a legal C identifier.
> I'm just following what's already defined as string_eq in o/string.d.
> Of course, the topic of packages is a horrendously complicated matter and a
> fix might be a lot more complicated than what I have proposed.  But I suspect
> that since we're not going very close to INTERN, USE, or SHADOW, the fix
> might be this easy.
> Bob
> P. S.  After you have made the fix above, but before you try to rebuild GCL,
> you need to fix another bug in the GCL sources in the following way.  In the
> files "unixport/init_ansi_gcl.lisp" and "unixport/init_ansi_gcl.lisp.in",
> replace (in-package "lisp") with (in-package "LISP").

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]