This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / Debugging  /
StackInhibit

  • StackInhibit[ expr ] evaluates expr without modifying the evaluation stack.
  • You can use StackInhibit to prevent "innermost" evaluations from appearing in the evaluation stack when you look at it with Stack.
  • StackInhibit has attribute HoldFirst.
  • See the Mathematica book: Section 2.5.11.
  • See also: StackBegin.

    Further Examples

    StackInhibit prevents Print from being included on the stack.

    In[1]:=

    {CompoundExpression, f, g}

    StackBegin[ expr ] uses a fresh stack in the evaluation of expr.

    In[2]:=

    {g, h}

    Out[2]=