Jump to content

Find limit of recursion: Difference between revisions

m
→‎{{header|REXX}}: added comment about never executed code. -- ~~~~
m (Added LSL)
m (→‎{{header|REXX}}: added comment about never executed code. -- ~~~~)
Line 1,159:
On (IBM's) VM/CMS, the limit of recursion was built-into CMS to stop run-away REXX programs, it was either 200 or 250 as I recall.
<br>I believe that later this was changed to allow the user to specify the limit. My memory is really fuzzy about these details.
<lang rexx>/*REXX program testtests limitsthe limit of recursion. */
n=0
call self
exit /*this statement will never be executed.*/
exit
 
self: procedure expose n
Cookies help us deliver our services. By using our services, you agree to our use of cookies.