.. highlightlang:: us .. _stack: stack ===== .. index:: stack .. us.tag stack NOTREADYENGLISH Programming.Symboltable Programming.Debug New330 :ref:`stack` returns the current function name as well as the function name of the calling functions. .. function:: nMax = stack() ssName = stack(n) .. us.return **Return Value** Without parameters :ref:`stack` returns the number of elements in the Stack *nMax*. If called with one parameter *n* = 0 .. nMax-1, :ref:`stack` returns the function name an the specified position. ``stack(0)`` returns the current function name. .. us.params **Parameters** .. uparam:: n *n* see return value. .. us.example **Example** :: def TestStackFunc() { print stack(0); // Return: "TestStackFunc" } .. seealso:: :ref:`overview-programming` :sub:`id-129372`