DOCUMENTATION CENTER SEARCH
Mathematica
>
Namespace Management
>
Built-in
Mathematica
Symbol
Mathematica Packages
Setting Up Mathematica Packages
Tutorials »
|
Begin
BeginPackage
EndPackage
See Also »
|
Namespace Management
Package Development
Scoping Constructs
More About »
End
End
[]
returns the present context, and reverts to the previous one.
MORE INFORMATION
Every call to
End
must be balanced by an earlier call to
Begin
.
End
[]
resets the value of
$Context
.
End
[]
returns the present context name as a string of the form
"
context
`"
.
End
[]
does not modify
$ContextPath
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Define a function
f
in the
MyContext`
Context
:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
In[3]:=
Restore the context:
In[4]:=
Out[4]=
The context is now what it was before
Begin
was used:
In[5]:=
Out[5]=
SEE ALSO
Begin
BeginPackage
EndPackage
TUTORIALS
Mathematica
Packages
Setting Up
Mathematica
Packages
MORE ABOUT
Namespace Management
Package Development
Scoping Constructs
New in 1
© 2008 Wolfram Research, Inc.