PACKAGE FUNCTIONS


These functions are defined when the packages option is compiled. The <package> argument can be either a string, symbol, or package object. The default when no package is given is the current package (as bound to *package*), unless otherwise specified in the definition. The <symbols> argument may be either a single symbol or a list of symbols. In case of name conflicts, a correctable error occurs.


SEARCH SYMBOLS FOR NAME MATCH

(apropos <string> [<package>])

(apropos-list <string> [<package>])

Functions in common.lsp.


(RE)DEFINE A PACKAGE

(
defpackage <package> [<option>...])

Macro in common.lsp. Use to define a package, or redefine a package.


DELETE A PACKAGE

(
delete-package <package>)

Deletes a package by uninterning all its symbols and removing the package.


ITERATE OVER SYMBOLS

(
do-symbols (<var> [<package> [<result>]]) <expr>...))

(do-external-symbols (<var> [<package> [<result>]]) <expr>...)

(do-all-symbols (<var> [<result>]) <expr>...)

Implemented as macros in common.lsp. DO-SYMBOLS iterates over all symbols in a single package, DO-EXTERNAL-SYMBOLS iterates only over the external symbols, and DO-ALL-SYMBOLS iterates over all symbols in all packages.


DECLARE EXTERNAL SYMBOLS

(
export <symbols> [<package>])


FIND SYMBOLS WITH SPECIFIED NAME

(
find-all-symbols <string>)


FIND PACKAGE WITH SPECIFIED NAME

(
find-package <package>)


LOOK UP A SYMBOL

(
find-symbol <string> [<package>])


IMPORT SYMBOLS INTO A PACKAGE

(
import <symbols> [<package>])


SET CURRENT PACKAGE

(
in-package <package>)

FSUBR which sets the current package until next call or end of current LOAD.


GET ALL PACKAGE NAMES

(
list-all-packages)


MAKE A NEW PACKAGE

(
make-package <package> &key :nicknames :use)


GET PACKAGE NAME STRING

(
package-name <package>)


GET PACKAGE NICKNAME STRINGS

(
package-nicknames <package>)


GET AN OBARRAY

(
package-obarray <package> [<external>])


GET LIST OF SHADOWING SYMBOLS

(
package-shadowing-symbols <package>)


GET PACKAGES USED BY A PACKAGE

(
package-use-list <package>)


GET PACKAGES THAT USE THIS PACKAGE

(
package-used-by-list <package>)


IS THIS A GOOD PACKAGE?

(
package-valid-p <package>)


RENAME A PACKAGE

(
rename-package <package> <new> [<nick>])


MAKE SHADOWING SYMBOLS

(
shadow <symbols> [<package>])

If a symbol is not already in the package, it is interned. The symbol is placed in the shadowing symbols list for the package.


IMPORT SYMBOLS AND SHADOW

(
shadowing-import <symbols> [<package>])

If a symbol exists in the package, it is first uninterned. The symbol is imported, and then made shadowing.


FIND THE PACKAGE OF A SYMBOL

(
symbol-package <symbol>)


MAKE SYMBOLS INTERNAL TO PACKAGE

(
unexport <symbols> [<package>])


REMOVE PACKAGES FROM USE LIST

(
unuse-package <pkgs> [<package>])


ADD PACKAGES TO USE LIST

(
use-package <pkgs> [<package>])


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker