recursion without exit is dangerous. recursion just keeps
loading the function in the stack over and over again so
of course you get stack overflow. Try it in C and you get
the same thing. Its memory management.
Er... I think you've missed the point. You obviously didn't read my first post any further than the thread title and the code.loading the function in the stack over and over again so
of course you get stack overflow. Try it in C and you get
the same thing. Its memory management.
The above code deliberately tries to cause a stack overflow, and it does cause the program to end, but no error is reported.
Blitz USED to report a stack overflow in this situation. Now, it does not, which is why I started this thread in Bug Reports.