This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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.
Prevent Print from being shown on the stack:
Get the detailed stack contents as well:
Prevent Print from being shown on the stack:
In[1]:=
Click for copyable input
Out[1]=
 
Get the detailed stack contents as well:
In[1]:=
Click for copyable input
Out[1]=
New in 2