Hi,

In message "Re: [ruby-core:20978] Definable != is a Bad Thing"
    on Tue, 30 Dec 2008 09:40:54 +0900, Ryan Davis <ryand-ruby / zenspider.com> writes:
|
|> >> class X; def == o; :great; end; def != o; :horrible; end; end
|> => nil
|> >> x = X.new
|> => #<X:0x419948>
|> >> x == 0
|> => :great
|> >> x != 0
|> => :horrible
|
|== and != should not be able to contradict each other.
|
|Is this a bug? I looked at the code and it looks intentional. Should  
|it be allowed?

It's intentional.  Ruby's flexibility sometimes allows you to do some
nasty things.  Ruby consider you smart enough to avoid such
contradiction.

							matz.