>>>>> "J" == Jacob Fugal <lukfugl / gmail.com> writes:

J> The one question I do have regarding this is why isn't the default
J> implementation of Object#eql? as an alias to Object#==? The
J> documentation makes it clear that that's the intended behavior, and
J> the common behavior for descendants of Object as well. It seems odd
J> that it's not then codified as an alias. It seems redundant that we
J> have to always remember to alias #eql? if we override #==; why can't
J> it be the default to already be an alias?


 becuase this will change nothing

moulon% cat b.rb
#!/usr/bin/ruby
module Kernel
   def x
      puts "x"
   end
   alias xx x
end

class A
   def x
      puts "new x"
   end
end

A.new.x
A.new.xx
moulon% 

moulon% ./b.rb
new x
x
moulon% 



Guy Decoux