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 /

EndPackage

FilledSmallSquare EndPackage[ ] restores $Context and $ContextPath to their values before the preceding BeginPackage, and prepends the current context to the list $ContextPath.

FilledSmallSquare Every call to EndPackage must be balanced by an earlier call to BeginPackage.

FilledSmallSquare EndPackage is typically used at the end of a Mathematica package.

FilledSmallSquare EndPackage returns Null.

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

FilledSmallSquare See Section 2.7.10.

FilledSmallSquare New in Version 1.

Further Examples