ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   11 Packages   11.2 Dictionary of Packages

11.2.16 in-package Macro

Syntax:
in-package name    package

Arguments and Values:
name - a string designator; not evaluated.

package - the package named by name.

Description:
Causes the the package named by name to become the current package - that is, the value of *package*. If no such package already exists, an error of type package-error is signaled.

Everything in-package does is also performed at compile time if the call appears as a top level form.

Side Effects:
The variable *package* is assigned. If the in-package form is a top level form, this assignment also occurs at compile time.

Exceptional Situations:
An error of type package-error is signaled if the specified package does not exist.

See Also:
*package*

Allegro CL Implementation Details:
See cl:defpackage and cl:in-package in implementation.htm for information on the implementation of in-package. Note the links are to the documentation for the current Allegro CL version. Replace /current/ in the URL with the Allegro CL version number to see similar documentation in earlier releases.

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25