ts <decoux / moulon.inra.fr> wrote:
> 
> svg% cat b.rb
> #!./ruby
> class A
>   def initialize
>      @_a = [1, 2]
>   end
> 
>   def show
>      p "A : #{@_a.inspect}"
>   end
> end
> 
> class B < A
>   def initialize
>      @_a = 12
>      super
>   end
> 
>   def show
>      p "B : #{@_a.inspect}"
>      super
>   end
> end
> 
> B.new.show
> svg%
> 
> svg% b.rb
> "B : 12"
> "A : [1, 2]"

Huh?

[mdemello@localhost mdemello]$ ruby b.rb
"B : [1, 2]"
"A : [1, 2]"
[mdemello@localhost mdemello]$ ruby -v
ruby 1.8.0 (2003-06-23) [i686-linux-gnu]

martin