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  /

  • StackBegin[ expr ] evaluates expr, starting a fresh evaluation stack.
  • You can use StackBegin to prevent "outer" evaluations from appearing in the evaluation stack when you call Stack.
  • StackBegin has attribute HoldFirst.
  • A StackBegin is automatically done when the evaluation of each input line begins in an interactive Mathematica session.
  • See the Mathematica book: Section 2.5.11.
  • See also: StackInhibit.

    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}