Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Evaluation Control > HoldFirst >

HoldFirst

HoldFirst
is an attribute which specifies that the first argument to a function is to be maintained in an unevaluated form.
Definitions for unevaluated expressions can implement call-by-name semantics:
The global variable has been modified:
Functions that operate on symbols often need the HoldFirst attribute:
Assignments do not evaluate their left-hand sides:
Use Evaluate to force evaluation of an argument of a HoldFirst function:
Suppress the evaluation of the first argument of a pure function:
Sequence splitting still happens for HoldFirst functions:
NHoldFirst protects arguments from N, but evaluates them normally otherwise:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF