Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Defining Variables and Functions > Attributes > Protected >

Protected

Protected
is an attribute which prevents any values associated with a symbol from being modified.
  • Many built-in Mathematica functions have the attribute Protected.
In[1]:=
Click for copyable input
Out[1]=
 
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Unprotect a system symbol to make a definition for it:
Restore protection:
Protecting a symbol is equivalent to setting the Protected attribute:
Unprotecting a symbol is equivalent to clearing the Protected attribute:
No more definitions can be made for a protected symbol:
Neither can definitions be cleared:
To modify definitions of a protect symbol, unprotect it first:
A symbol that is locked and protected can no longer be changed:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF