HoldAll
Usage Message: HoldAll is an attribute which specifies that all arguments to a function are to be maintained in an
unevaluated form. Attributes[HoldAll] = {Protected} Related Symbols: Attributes
ClearAttributes
Evaluate
Hold
HoldFirst
HoldRest
SetAttributes
Unevaluated
Notes: The HoldAll attribute for a function causes all of the arguments to that function to be held unevaluated.
In[1]:= SetAttributes[f, HoldAll]
In[2]:= f[2 + 2, 2 + 2, 2 + 2]
Out[2]= f[2 + 2, 2 + 2, 2 + 2]
The HoldAll attribute is used primarily for holding expressions unevaluated until they are passed along to the definition of the function. Many built-in functions, such as most numerical functions and most plotting functions, have the HoldAll attribute.
Additional Online Documentation:
Mathematica 3.0
http://documents.wolfram.com/v3/RefGuide/HoldAll.html
Mathematica 4.0
http://documents.wolfram.com/v4/RefGuide/HoldAll.html
Questions or comments? Send email to support@wolfram.com.
|