is an attribute that prevents values associated with a symbol from being seen.
ReadProtected
is an attribute that prevents values associated with a symbol from being seen.
Details
- Individual values associated with read‐protected symbols can be used during evaluation.
- Definition[f], ?f, and related functions give only the attributes for read‐protected symbols f.
Examples
open all close allBasic Examples (2)
Properties & Relations (2)
Definitions of a read-protected symbol are not shown:
f[x_] := x ^ 2;
SetAttributes[f, ReadProtected];Definition[f]As long as the symbol is not locked, the read protection can be removed:
ClearAttributes[f, ReadProtected];Definition[f]If a symbol is locked and protected, its definitions can be neither changed nor read:
f[x_] := x ^ 2;
SetAttributes[f, {Protected, ReadProtected, Locked}];Definition[f]Clear[f]Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), ReadProtected, Wolfram Language function, https://reference.wolfram.com/language/ref/ReadProtected.html.
CMS
Wolfram Language. 1988. "ReadProtected." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ReadProtected.html.
APA
Wolfram Language. (1988). ReadProtected. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReadProtected.html
BibTeX
@misc{reference.wolfram_2026_readprotected, author="Wolfram Research", title="{ReadProtected}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/ReadProtected.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_readprotected, organization={Wolfram Research}, title={ReadProtected}, year={1988}, url={https://reference.wolfram.com/language/ref/ReadProtected.html}, note=[Accessed: 13-June-2026]}