PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Built-in
Mathematica
Symbol
Tracing Evaluation
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
.
MORE INFORMATION
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
x
$
nnn
.
Trace
[
expr
,
x
=
rhs
, MatchLocalNames->
False
]
shows assignments only for the global symbol
x
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
By default,
Trace
will match local variables:
In[1]:=
In[2]:=
Out[2]=
With
MatchLocalNames →
False
, only an explicit match of
x
will show up:
In[3]:=
Out[3]=
TUTORIALS
Tracing Evaluation
New in 2
© 2008 Wolfram Research, Inc.