User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:macros:in-package [2019/10/13 03:00]
cl:macros:in-package [2019/10/14 06:00] (current)
Line 1: Line 1:
 +====== Macro IN-PACKAGE ======
 +
 +====Syntax====
 +  * **in-package** //name// → //package//
 +
 +====Arguments and Values====
 +  * //name// - a //​[[CL:​Glossary:​package name designator]]//;​ not evaluated.
 +  * //package// - the //​[[CL:​Glossary:​package]]//​ named by //name//.
 +
 +====Description====
 +Causes the the //​[[CL:​Glossary:​package]]//​ named by //name// to become the //​[[CL:​Glossary:​current package]]// - that is, the //​[[CL:​Glossary:​value]]//​ of **[[CL:​Variables:​star-package-star|*package*]]**. If no such //​[[CL:​Glossary:​package]]//​ already exists, an error of type **[[CL:​Types:​package-error]]** is signaled.
 +
 +Everything **in-package** does is also performed at compile time if the call appears as a //​[[CL:​Glossary:​top level form]]//.
 +
 +====Examples====
 +None.
 +
 +====Side Effects====
 +The **[[CL:​Variables:​star-package-star|*package*]]** //​[[CL:​Glossary:​variable]]//​ is assigned. If the **in-package** //​[[CL:​Glossary:​form]]//​ is a //​[[CL:​Glossary:​top level form]]//, this assignment also occurs at compile time.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +An error of type **[[CL:​Types:​package-error]]** is signaled if the specified //​[[CL:​Glossary:​package]]//​ does not exist.
 +
 +====See Also====
 +  * **[[CL:​Variables:​star-package-star|Variable *PACKAGE*]]**
 +
 +====Notes====
 +None.
 +
 +\issue{IN-PACKAGE-FUNCTIONALITY:​MAR89-X3J13}