<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
In Common Lisp, I believe defpackage is to either define or
*redefine* a package. I've found that in abcl if the package is
already defined, defpackage won't redefine it (apparently).<br>
To wit:<br>
<br>
<tt>CL-USER(2): CL-USER(2): (package-nicknames :utilities)</tt><tt>
=> error package not found</tt><tt><br>
</tt><tt>CL-USER(3): (make-package :utilities) ;; so make the
package</tt><tt><br>
</tt><tt>#<PACKAGE UTILITIES></tt><tt><br>
</tt><tt>CL-USER(4): (package-nicknames :utilities)</tt><tt><br>
</tt><tt>NIL</tt><tt> ;; has no nicknames</tt><tt><br>
</tt><tt>CL-USER(5): (defpackage "UTILITIES"</tt><tt><br>
</tt><tt> (:use "COMMON-LISP")</tt><tt><br>
</tt><tt> (:nicknames "UTIL")) ;; use defpackage to define a
nickname</tt><tt><br>
</tt><tt>#<PACKAGE UTILITIES></tt><tt><br>
</tt><tt>CL-USER(6): (PACKAGE-NICKNAMES :UTILITIES)</tt><tt><br>
</tt><tt>NIL ;;but still no nickname</tt><tt><br>
</tt><tt>CL-USER(7): (delete-package :utilities) ;; get rid of the
package</tt><tt><br>
</tt><tt>T</tt><tt><br>
</tt><tt>CL-USER(8): (defpackage "UTILITIES" ;; redefine it</tt><tt><br>
</tt><tt> (:use "COMMON-LISP")</tt><tt><br>
</tt><tt> (:nicknames "UTIL"))</tt><tt><br>
</tt><tt>#<PACKAGE UTILITIES></tt><tt><br>
</tt><tt>CL-USER(9): (package-nicknames :utilities)</tt><tt><br>
</tt><tt>("UTIL")</tt><tt> ;; and it has nicknames</tt><tt><br>
</tt><tt>CL-USER(10): </tt><br>
<br>
Is this a bug?<br>
<br>
Thanks,<br>
Pete<br>
<br>
<br>
<br>
<blockquote cite="mid:878upxslcm.fsf@gmail.com" type="cite">
</blockquote>
<br>
</body>
</html>