From: Minkoo Seo Date: 2006-05-06T19:21:46+09:00 Subject: Re: comparing objects ------=_Part_17908_626823.1146910903908 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'd like to slightly restate the differences like: >> > #eql? -- Equivalence with structure and type >> > #=3D=3D -- Equivalence with structure >> > #equal? -- Identity #eql? -- Equivalence with type and value #=3D=3D -- Equivalence with value #equal? -- Identity On 5/6/06, Logan Capaldo wrote: > > > 2.eql? 2.0 is false, 2 =3D=3D 2.0 is true > > I imagine the major difference is =3D=3D potentially calls coerce I'd like to interpret calling coerce as a comparison based on values while ignoring types. Hence, 2.eql? 2.0 is false because their type is differnt, while 2 =3D=3D 2.0 is true because their value is the same though their hav= e differnt types. Sincerely, Minkoo Seo ------=_Part_17908_626823.1146910903908--