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 /

$Packages

FilledSmallSquare $Packages gives a list of the contexts corresponding to all packages which have been loaded in your current Mathematica session.

FilledSmallSquare $Packages is updated when BeginPackage is executed.

FilledSmallSquare $Packages is used by Needs to determine whether a particular package needs to be loaded explicitly.

FilledSmallSquare See Section 2.7.9.

FilledSmallSquare See also: Contexts, $ContextPath, DeclarePackage, $ExportFormats.

FilledSmallSquare New in Version 2.