Mathematica 9 is now available
 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]=



    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.