Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / Debugging  /
StackBegin

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

    In[1]:=

    {CompoundExpression, f, g}

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

    In[2]:=

    {g, h}

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.