[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error on package redefinition?
- To: clisp-list <clisp-list@ma2s2.mathematik.uni-karlsruhe.de>
- Subject: Re: Error on package redefinition?
- From: Mark Mueller <stoffel@cs.tu-berlin.de>
- Date: Tue, 04 Jun 1996 16:39:58 +0200
- Organization: TU Berlin
- References: <199606021018.MAA20744@spock.iti.informatik.th-darmstadt.de>
- Sender: stoffel@cs.tu-berlin.de
I have a package definition in my code, and if i loaded my
code again, the package definitions caused error messages:
> (make-package 'test)
#<PACKAGE TEST>
> (make-package 'test)
** - Continuable Error
a package with name "TEST" already exists.
If you continue (by typing 'continue'): You can input another name.
In my case i solved the problem by asking if a package
exists with (find-package ...) before i defined it new:
(if (not (find-package 'control))
(MAKE-PACKAGE 'control))
Mark
--
Mark Müller * Institut für Angewandte Informatik * FG Methoden der KI
Sekr. 5-8 * Franklinstr.28-29 * 10587 Berlin * Tel.: 314-21005
Email: pandur@cs.tu-berlin.de * stoffel@cs.tu-berlin.de
WWW: http://www.cs.tu-berlin.de/~pandur/