BUILT-IN WOLFRAM LANGUAGE SYMBOL

MatchLocalNames

MatchLocalNames
is an option for Trace and related functions that specifies whether symbols such as x should match symbols with local names of the form .

DetailsDetails

  • The default setting is MatchLocalNames->True.
  • With the default setting, Trace[expr,x=rhs] will show assignments to local variables whose names are of the form .
  • Trace[expr,x=rhs,MatchLocalNames->False] shows assignments only for the global symbol x.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

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]=
Introduced in 1991
(2.0)