Find limit of recursion: Difference between revisions
→{{header|Wren}}: Updated code to v0.4.0.
(Added XPL0 example.) |
(→{{header|Wren}}: Updated code to v0.4.0.) |
||
Line 3,343:
In Wren a fiber's stack starts small and is increased as required. It appears that the runtime makes no attempt to check for any limitation internally leaving the script to eventually segfault.
<syntaxhighlight lang="
if (n%500 == 0) System.print(n) // print progress after every 500 calls
▲ f.call(n + 1)
}
{{out}}
|