End
Usage
• End[ ]返回当前上下文,并回复到前一个上下文.
Notes
• End 的每一次调用必须提前使用Begin调用来平衡. • End[ ] 会重新设置$Context的值. • End[ ]以形式为"context`"的字符串来返回当前上下文的名称. • End[ ]不会修改 $ContextPath的值.
Further Examples
Nested Begins and Ends behave properly. Here we have two nested context changes.
In[1]:=
|
Out[1]=
|
The first End restores the context that was current before the last Begin.
In[2]:=
|
Out[2]=
|
Another End restores the original context.
In[3]:=
|
Out[3]=
|
同时参见 the Further Examples for Begin.
|