The stack level is how far down the call chain you are. When one method calls 
another you increase the stack level, if that method then calls another method 
you increase the stack level again. As methods complete the stack level 
decreases.

The following description on Wikipedia for Call Stack may help further explain 
the concept:
https://en.wikipedia.org/wiki/Call_stack
{
A call stack is used for several related purposes, but the main reason for 
having one is to keep track of the point to which each active subroutine should 
return control when it finishes executing. An active subroutine is one that has 
been called but is yet to complete execution after which control should be 
handed back to the point of call. Such activations of subroutines may be nested 
to any level (recursive as a special case), hence the stack structure. If, for 
example, a subroutine DrawSquare calls a subroutine DrawLine from four 
different places, DrawLine must know where to return when its execution 
completes. To accomplish this, the address following the call instruction, the 
return address, is pushed onto the call stack with each call.
}


-Tim



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to