[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01175] Re: == and eql?

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-25 01:17:22 UTC
List: ruby-talk #1175
In message "[ruby-talk:01174] == and eql?"
    on 00/01/24, Dave Thomas <Dave@thomases.com> writes:

|Can anyone think of a circumstance in the distributed Ruby library
|where
|
|  a == b
|
|and
|
|  a.eql? b
|
|return different values?

They are basically same except small difference in behavior on mixed
types, e.g.

  1.0 == 1      # => true
  1.0.eql? 1    # => false

In This Thread

Prev Next