OpenersNotesSection(Spacer1)Details

This message is generated when the second argument in (RefLink[Stack, paclet:ref/Stack]) is an integer greater than the number of stack elements that match the form specified in the first argument.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[Stack::stackx].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

An error occurs because the evaluation stack is only four levels deep when the (RefLink[Stack, paclet:ref/Stack]) expression is evaluated:

Cos[2+(Print[Stack[_,5]];Pi)]

This shows a valid use of (RefLink[Stack, paclet:ref/Stack]):

Cos[2+(Print[Stack[_,4]];Pi)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Stack, paclet:ref/Stack])}})}})