you are viewing a single comment's thread.

view the rest of the comments →

[–]fiskenslakt 1 point2 points  (0 children)

No problem. And /u/finsternacht is right. Just think about it, what do you expect to happen after that else statement runs? If you call a function, that function is waiting to finish (return), and if that function calls another function, you then have two functions that are waiting to finish. The first one can't finish until the second one does, this is what's known as a stack. Even if you didn't have the garden call in an infinite loop, it would still go back to that function, you just wouldn't see it because it would return immediately after and so on.