Anonymous user
Find limit of recursion: Difference between revisions
→Subroutines
Line 1,393:
===Subroutines===
A lot of languages have a subroutine as a function without return value. As we see before, M2000 has Modules (as procedures) and Functions as that can be called as procedures too. These "procedures" can use only globals and anything they make for them.
So what is a subroutine
Subroutines are part of modules/functions. They haven't execution object, and they have to use parent object. So this parent object has the return stack, and use heap for this. So we can set a limit with Recursion.Limit to say 500000.
|