PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
Mathematica Personal Grid Edition
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Attributes
>
Built-in
Mathematica
Symbol
Modifying Built-in Functions
Tutorials »
|
Unprotect
Protected
See Also »
|
Attributes
Package Bulletproofing
Package Development
More About »
Protect
Protect
[
s
1
,
s
2
,
...
]
sets the attribute
Protected
for the symbols
s
i
.
Protect
["
form
1
", "
form
2
",
...
]
protects all symbols whose names match any of the string patterns
form
i
.
MORE INFORMATION
Protect
allows abbreviated string patterns containing the following metacharacters:
*
zero or more characters
@
one or more characters, excluding uppercase letters
\\*, etc.
literal *, etc.
Protect
["
context
`*"]
protects all symbols in a particular context.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Define and protect a function:
In[1]:=
The function definition can no longer be changed:
In[2]:=
Out[2]=
Scope
(2)
Applications
(1)
Properties & Relations
(4)
SEE ALSO
Unprotect
Protected
TUTORIALS
Modifying Built-in Functions
MORE ABOUT
Attributes
Package Bulletproofing
Package Development
New in 1
© 2008 Wolfram Research, Inc.