Find limit of recursion: Difference between revisions

m
→‎Icon and Unicon: header simplification
m (→‎Icon and Unicon: header simplification)
Line 392:
SetRecursionTrapInterval(0);</lang>
 
== {{header|Icon}} and {{header|Unicon }}==
==={{headerworks with|Unicon}}===
==={{header|Icon}}===
<lang Icon>procedure main()
envar := "MSTKSIZE"
Line 407:
end</lang>
Note: The stack size environment variable defaults to about 50000 words. This terminates after approximately 3500 recursions (Windows). The interpreter should terminate with a 301 error, but currently this does not work.
 
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Inform 7}}==
Anonymous user