>>>>> "A" == Aleksei Guzev <aleksei.guzev / bigfoot.com> writes:

A> Sometimes I think it would be great to define two methods of the same
A> name but different parameters ( C++ "overload").

 I'm agree with you :-)

A> But since Ruby does not support typing it cannot determine that method
A> should be called in particular. 

pigeon% cat b.rb
#!./ruby
class A
   def tt(String a)
      puts "I'm a String object"
   end

   def tt(Array a)
      puts "I'm an Array object"
   end
end

A.new.tt("string")
A.new.tt([1, 2])

pigeon% b.rb
I'm a String object
I'm an Array object
pigeon% 


 but please see [ruby-talk:15178]


Guy Decoux