This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Scoping /

BeginPackage

FilledSmallSquare BeginPackage["context`"] makes context` and System` the only active contexts.

FilledSmallSquare BeginPackage["context`", "`", "`", ... ] calls Needs on the .

FilledSmallSquare BeginPackage is typically used at the beginning of a Mathematica package.

FilledSmallSquare BeginPackage resets the values of both $Context and $ContextPath.

FilledSmallSquare The interpretation of symbol names depends on context. BeginPackage thus affects the parsing of input expressions.

FilledSmallSquare See Section 2.7.10.

FilledSmallSquare See also: EndPackage.

FilledSmallSquare New in Version 1.

Further Examples