Protected
✖
Protected
シンボルに備わっているすべての値が変更できないようにする属性である.
詳細

- 多くのWolfram言語の組込み関数には,その属性としてProtectedが与えられている.
- SetOptionsは,属性Protectedを持つが属性Lockedは持たないシンボルに使うことができる.
例題
すべて開くすべて閉じる例 (2)基本的な使用例
スコープ (1)標準的な使用例のスコープの概要
アプリケーション (1)この関数で解くことのできる問題の例
特性と関係 (5)この関数の特性および他の関数との関係
シンボルをプロテクトすることはProtected属性を設定することに等しい:
In[1]:=1

✖
https://wolfram.com/xid/0ldelug-kr2p40
In[3]:=3

✖
https://wolfram.com/xid/0ldelug-ieyx3j
Out[3]=3

シンボルのプロテクトを外すことはProtected属性をクリアすることに等しい:
In[4]:=4

✖
https://wolfram.com/xid/0ldelug-b0vhus
In[6]:=6

✖
https://wolfram.com/xid/0ldelug-bkqf88
Out[6]=6

In[1]:=1

✖
https://wolfram.com/xid/0ldelug-d3sxi1
In[2]:=2

✖
https://wolfram.com/xid/0ldelug-br7hms
In[3]:=3

✖
https://wolfram.com/xid/0ldelug-eogddo

Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0ldelug-qujjh

プロテクトされたシンボルの定義に変更を加えるためには,まずプロテクトを外さなければならない:
In[1]:=1

✖
https://wolfram.com/xid/0ldelug-fqvj86
In[2]:=2

✖
https://wolfram.com/xid/0ldelug-nbosdx

Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0ldelug-j9eg5p
In[4]:=4

✖
https://wolfram.com/xid/0ldelug-cbm5gd
SetOptionsを使って保護された関数のデフォルトオプションを変えることができる:
In[1]:=1

✖
https://wolfram.com/xid/0ldelug-n31ugj
Out[1]=1

Dのオプションを変える:
In[2]:=2

✖
https://wolfram.com/xid/0ldelug-ui11iw
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0ldelug-ik8912
Out[3]=3

ロックされプロテクトされたシンボルは変更することができない:
In[1]:=1

✖
https://wolfram.com/xid/0ldelug-eswnz5
In[2]:=2

✖
https://wolfram.com/xid/0ldelug-c940n8

Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0ldelug-dlq28s

In[4]:=4

✖
https://wolfram.com/xid/0ldelug-c9kxig

Out[4]=4

Wolfram Research (1988), Protected, Wolfram言語関数, https://reference.wolfram.com/language/ref/Protected.html.
✖
Wolfram Research (1988), Protected, Wolfram言語関数, https://reference.wolfram.com/language/ref/Protected.html.
テキスト
Wolfram Research (1988), Protected, Wolfram言語関数, https://reference.wolfram.com/language/ref/Protected.html.
✖
Wolfram Research (1988), Protected, Wolfram言語関数, https://reference.wolfram.com/language/ref/Protected.html.
CMS
Wolfram Language. 1988. "Protected." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Protected.html.
✖
Wolfram Language. 1988. "Protected." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Protected.html.
APA
Wolfram Language. (1988). Protected. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Protected.html
✖
Wolfram Language. (1988). Protected. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Protected.html
BibTeX
✖
@misc{reference.wolfram_2025_protected, author="Wolfram Research", title="{Protected}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Protected.html}", note=[Accessed: 02-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_protected, organization={Wolfram Research}, title={Protected}, year={1988}, url={https://reference.wolfram.com/language/ref/Protected.html}, note=[Accessed: 02-May-2025
]}