Find limit of recursion: Difference between revisions
Content added Content deleted
(→{{header|Delphi}}: Adds Déjà Vu example) |
|||
Line 470: | Line 470: | ||
Output: |
Output: |
||
<pre>Recursion Level is 28781</pre> |
<pre>Recursion Level is 28781</pre> |
||
=={{header|Déjà Vu}}== |
|||
{{untested|Déjà Vu}} |
|||
<lang dejavu>rec-fun n: |
|||
!. n |
|||
rec-fun ++ n |
|||
rec-fun 0</lang> |
|||
This continues until the memory is full, so I didn't wait for it to finish. Currently, it should to to almost 3 million levels of recursion on a machine with 1 GB free. Eliminating the <code>n</code> should give over 10 million levels on the same machine. |
|||
=={{header|DWScript}}== |
=={{header|DWScript}}== |