This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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