User Tools


Function PACKAGE-NAME

Syntax

  • package-name packagename

Arguments and Values

Description

package-name returns the string that names package, or nil if the package designator is a package object that has no name (see the function delete-package).

Examples

(in-package "COMMON-LISP-USER")

#<PACKAGE "COMMON-LISP-USER">

(package-name *package*)

"COMMON-LISP-USER"

(package-name (symbol-package :test))

"KEYWORD"

(package-name (find-package 'common-lisp))

"COMMON-LISP"

(defvar *foo-package* (make-package "FOO"))

*FOO-PACKAGE*

(rename-package "FOO" "FOO0")

#<PACKAGE "FOO0">

(package-name *foo-package*)

"FOO0"

Side Effects

None.

Affected By

None.

Exceptional Situations

Should signal an error of type type-error if package is not a package designator.

See Also

None.

Notes

None.

\issue{PACKAGE-FUNCTION-CONSISTENCY:MORE-PERMISSIVE} \issue{PACKAGE-DELETION:NEW-FUNCTION} \issue{PACKAGE-DELETION:NEW-FUNCTION} \issue{PACKAGE-FUNCTION-CONSISTENCY:MORE-PERMISSIVE}