HoldComplete

HoldComplete[expr]

shields expr completely from the standard Wolfram Language evaluation process, preventing even upvalues associated with expr from being used.

Details

Examples

open allclose all

Basic Examples  (1)

Properties & Relations  (6)

HoldComplete is the standard container with attribute HoldAllComplete:

No form of evaluation control affects an expression with attribute HoldAllComplete:

Substitution still happens inside HoldComplete:

ReleaseHold removes one level of HoldComplete:

Hold is a milder form of HoldComplete that allows for some form of evaluation:

HoldComplete can be used to freeze the result of ToExpression before it is evaluated:

Possible Issues  (2)

HoldComplete affects only evaluation; input transformations are still applied:

HoldComplete does not prevent formatting:

Add DisableFormatting to prevent formatting:

Introduced in 1996
 (3.0)