This commit is contained in:
Ilya Kantor 2019-10-02 10:36:06 +03:00
parent 27576c058b
commit c8a11f3e86
3 changed files with 9 additions and 3 deletions

View file

@ -185,7 +185,13 @@ Here's the context stack when we entered the subcall `pow(2, 2)`:
The new current execution context is on top (and bold), and previous remembered contexts are below.
When we finish the subcall -- it is easy to resume the previous context, because it keeps both variables and the exact place of the code where it stopped. Here in the picture we use the word "line", but of course it's more precise.
When we finish the subcall -- it is easy to resume the previous context, because it keeps both variables and the exact place of the code where it stopped.
```smart
Here in the picture we use the word "line", as our example there's only one subcall in line, but generally a single line of code may contain multiple subcalls, like `pow(…) + pow(…) + somethingElse(…)`.
So it would be more precise to say that the execution resumes "immediately after the subcall".
```
### pow(2, 1)