Unprotect

Unprotect[s1,s2,]

removes the attribute Protected for the symbols si.

Unprotect["form1","form2",]

unprotects all symbols whose names textually match any of the formi.

Details

  • A typical sequence in adding your own rules for builtin functions is Unprotect[f];definition;Protect[f].

Examples

open allclose all

Basic Examples  (1)

Default behavior:

In[1]:=
Click for copyable input
Out[1]=

Unprotect and modify the definition:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input

New behavior:

In[5]:=
Click for copyable input
Out[5]=

Scope  (2)

Applications  (2)

Properties & Relations  (4)

See Also

Protect  Locked  SetOptions  ClearAttributes

Tutorials

Introduced in 1988
(1.0)