Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
Built-in Mathematica Symbol|Tutorials »

MatchLocalNames

MatchLocalNames
is an option for Trace and related functions which specifies whether symbols such as x should match symbols with local names of the form x$nnn.
  • With the default setting, Trace[expr, x=rhs] will show assignments to local variables whose names are of the form x$nnn.
  • Trace[expr, x=rhs, MatchLocalNames->False] shows assignments only for the global symbol x.
By default, Trace will match local variables:
With MatchLocalNames -> False, only an explicit match of x will show up:
By default, Trace will match local variables:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
With MatchLocalNames -> False, only an explicit match of x will show up:
In[3]:=
Click for copyable input
Out[3]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team