Name conflict with symbol from package COMMON-LISP
Hi, all!
We encountered an interesting problem concerning the naming of
functions. We have here quite a large collection of software based on a
specific Lisp-framework that has been developed using Macintosh Lisp.
We are currently porting this framework to Lispworks 4.2.7 (Linux).
In principle, it works quite well apart from some 'interesting'
discoveries every now and then. But here is a problem we can't find a
solution for:
In this framework, there is a function called optimize defined in a
package called math (it gets exported, as well). When evaluating this
package, we get a warning stating:
Defining function OPTIMIZE visible from package COMMON-LISP.
That's ok, so far, naming conflicts happen all the time ;).
We could, of course, just rename the function, but as it is part of the
framework which gets used in a lot of software this is annoying and
probably will lead to quite a lot of errors.
First, we tried not to export the symbol, but that's no help. So, we
tried to get rid of the symbol 'optimize; the problem is that the symbol
is rather persisting.
We found a symbol of that name in package KEYWORD (and in that package
only), so we tried the following; nothing of which worked:
1. Try: (unuse-package (find-package "KEYWORD"))
2. Try: (in-package :common-lisp)
(unuse-package (find-package "KEYWORD"))
3.: (makunbound 'keyword::optimize)
4.: (unintern 'optimize (find-package "KEYWORD")
(This seems to be case-insensitive, we tried both optimize and OPTIMIZE)
Does anyone of you know a way how we can keep our function optimize
(with that name, that is) without making the Lisp useless? And shouldn't
at least one of the things we tried "remove" the symbol 'optimize?
Thanks,
Kai-Florian
--
---------------------------------------------------------------------
Dipl.-Inform. Kai-Florian Richter richter@informatik.uni-bremen.de
AG COSY
FB 3 Mathematik & Informatik phone: +49-421-218-9043
Universitaet Bremen fax: +49-421-218-8620
www.informatik.uni-bremen.de/~richter
www.cosy.informatik.uni-bremen.de
---------------------------------------------------------------------