"InertExpression" (Compiled Type)


represents an inert expression that is not automatically evaluated.


  • "InertExpression" objects are internally represented identically to Wolfram Language expressions.
  • "InertExpression" objects are inert and will only evaluate on calls to InertEvaluate.


  • InertExpression[expr] constructs an inert expression object from the constant expr.
  • Construct[head,expr1,expr2,] combines the inert expressions head,expr1,expr2, to construct head[expr1,expr2,] as an inert expression. »




  • Inert expressions are automatically converted to and from expressions when passed between evaluated and compiled code. »


open allclose all

Basic Examples  (2)

Compile a program that returns an inert expression:

Run the program:

Inert expressions can be manipulated without being evaluated:

Scope  (2)

Inert expressions are automatically converted to expressions and evaluated when returned from compiled code:

Construct an inert expression, wrapping it in Hold before returning from compiled code:

Properties & Relations  (1)

Inert expressions can be evaluated with InertEvaluate: