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>IThis believelimit thatwas latermaybe thischanged was changedlater to allow the user to specify the limit. My memory is really fuzzy about these details.
<lang rexx>/*REXX program tests the limit of recursion. */
n=0
Line 1,188:
say n
call self</lang>
The last portion of the '''output when''' using Regina 3.5 under Windows/XP Pro
under Windows/XP Pro:
<pre style="overflow:scroll">
.
Line 1,204 ⟶ 1,203:
System resources exhausted
</pre>
'''output''' using Personal REXX under Windows/XP Pro
The last portion of the output when using Personal/REXX
I couldn't capture the<br>The recursion level wasn't captured, but the last number shown was 240.
under Windows/XP Pro.
<br>
I couldn't capture the recursion level, but the last number
shown was 240.
<pre style="overflow:scroll">
.
Line 1,225 ⟶ 1,221:
Error 5 on line 12 of D:\SELF.REX: Machine resources exhausted
</pre>
The last portion of the '''output when''' using R4 REXX under Windows/XP Pro:
<pre style="overflow:scroll">
.