Anonymous user
Find limit of recursion: Difference between revisions
→{{header|Common Lisp}}
(new Gri) |
|||
Line 364:
recurse.cbl:19: Attempt to reference unallocated memory (Signal SIGSEGV)
Abnormal termination - File contents may be incorrect</pre>
=={{header|CoffeeScript}}==
<lang coffeescript>
recurse = ( depth = 0 ) ->
try
recurse depth + 1
catch exception
depth
console.log "Recursion depth on this system is #{ do recurse }"
</lang>
Example output on [http://nodejs.org Node.js]:
Recursion depth on this system is 9668
=={{header|Common Lisp}}==
|