Anonymous user
Find limit of recursion: Difference between revisions
m
→{{header|REXX}}: reduced clutter in the output portion of the REXX examples. -- ~~~~
m (→64-bit version: Mistype 'y' -> '7') |
m (→{{header|REXX}}: reduced clutter in the output portion of the REXX examples. -- ~~~~) |
||
Line 1,177:
=={{header|REXX}}==
On (IBM's) VM/CMS, the limit of recursion was built-into CMS to stop run-away REXX programs calling recursively, it was either 200 or 250 as I recall.
<br>
<lang rexx>/*REXX program tests the limit of recursion. */
n=0
Line 1,188:
say n
call self</lang>
<pre style="overflow:scroll">
.
Line 1,204 ⟶ 1,203:
System resources exhausted
</pre>
'''output''' using Personal REXX under Windows/XP Pro
▲I couldn't capture the recursion level, but the last number
<pre style="overflow:scroll">
.
Line 1,225 ⟶ 1,221:
Error 5 on line 12 of D:\SELF.REX: Machine resources exhausted
</pre>
<pre style="overflow:scroll">
.
|