|
|
|
Note:
|
Attention:
|
OK, let's rock and roll...
|
|
|
|
|
|
Conclusion:
|
This structure is called a "stack frame" or (older term) a "procedure activation record".
Example: (see above in Phase 2)
But in general, if method ToolBox.min were to perform a complex task, it is advisable to:
|
Example: suppose method ToolBox.min uses another methods called someMethod:
The system will again use the method invocation mechanism
The method invocation mechanism will another stack frame on the System Stack:
|
Note:
|
The System Stack will look like this:
We can clearly see that the procedure activation records are created and destroyed in the Last In, First Out manner.
(That's why the area that store procedure activation records is called the System stack).