Find limit of recursion is part of Short Circuit's Console Program Basics selection.
Task

Find the limit of recursion.




proc recur i {
    puts "This is depth [incr i]"
    catch {recur $i}; # Trap error from going too deep
}
recur 0