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

  • 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.


    {CompoundExpression, f, g}

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


    {g, h}