Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Namespace Management >

End

End[]
returns the present context, and reverts to the previous one.
  • Every call to End must be balanced by an earlier call to Begin.
  • End[] returns the present context name as a string of the form "context`".
Define a function f in the MyContext` Context:
Restore the context:
The context is now what it was before Begin was used:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team