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

Re: Error on package redefinition?

I have a package definition in my code, and if i loaded my
code again, the package definitions caused error messages:

> (make-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 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/