is an attribute that, once assigned, prevents modification of any attributes of a symbol.
Examplesopen allclose all
Properties & Relations (5)
The attribute Locked, once set, cannot be removed:
By itself, the attribute Locked does not prevent adding definitions to a symbol:
However, no new attributes can be added:
If a symbol is protected and locked, its definitions can no longer be changed:
Clear can clear the values and definitions for locked symbols:
ClearAll does not affect locked symbols:
Remove does not affected locked symbols:
Wolfram Research (1988), Locked, Wolfram Language function, https://reference.wolfram.com/language/ref/Locked.html.
Wolfram Language. 1988. "Locked." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Locked.html.
Wolfram Language. (1988). Locked. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Locked.html