Infinite recursion is most often not needed, and when this happens, it usually causes stack overflows or segfaults.
But for the sake of theory and simple curiosity, I was wondering if it was possible to create real infinite recursion intentionally.
Work in C ++ and C, where the stack, as a rule, grows for each function call, and each function returns and returns a part of the processed stack.
Here is a thought. Is it possible to make a function clear its own stack space, and then call another function so that the new function effectively replaces the first function without the first function, which should have been returned, and then started again through a loop.
I do not just think of simple loops as a possible use for this if they were. Loops usually do a good job for what they do. But what if you use it to send signals through the node network that carry indefinite time in their process threads until they reach a certain state. It can be a tool that can be used for some problems.
Remember, I really do not ask how practical it is, only if it is possible. For science!
Zoomulator
source share