Hi, all
[root@home1 ~]# ruby -v
ruby 1.9.0 (2007-06-30 patchlevel 0) [i686-linux]
[root@home1 ~]# irb
irb(main):001:0> class C
irb(main):002:1> def C.hello
irb(main):003:2> p "helloc"
irb(main):004:2> end
irb(main):005:1> end
=> nil
irb(main):006:0> class A < C
irb(main):007:1> def A.hello
irb(main):008:2> p "C #{hello}"
irb(main):009:2> end
irb(main):010:1> hello
irb(main):011:1> end
(irb):8:in `hello': stack level too deep (SystemStackError)
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
        from (irb):8:in `hello'
         ... 6881 levels...

-- 
Posted via http://www.ruby-forum.com/.