exception with deep recursion in LL

ruby

def x()
    x()
end
x()
hoge.rb:2:in `x': stack level too deep (SystemStackError)
        from hoge.rb:2:in `x'
        from hoge.rb:4

python

def x():
    x()

x()
Traceback (most recent call last):
  File "hoge.py", line 4, in <module>
    x()
  File "hoge.py", line 2, in x
    x()
...
  File "hoge.py", line 2, in x
    x()
RuntimeError: maximum recursion depth exceeded

perl5

use strict;
use warnings;
use utf8;

sub x { x() }

x()
Deep recursion on subroutine "main::x" at hoge.pl line 6.
Out of memory!
^C

Published: 2012-03-21(Wed) 03:40