From: walter@... Date: 2004-04-16T02:30:02+09:00 Subject: Re: Hash, ==, key-value comparison > On Fri, Apr 16, 2004 at 02:04:10AM +0900, walter@mwsewall.com wrote: > > Ok, > > ALthough the docs don't mention it, Hash comparison using == > checks > not only the key value pairs, but also the default value / > default > procs. > > So how does one compare 2 hashes key-value pairs. > I can see that it > > I can contribute a patch to: > > * Change '==' method to compare only key-value pairs. > * Add Hash#=== method to act like current Hash#== > > Comments? > Personally, I like the idea. You get my vote! > Regards, > -- > University of Athens I bet the human brain > Physics Department is a kludge --Marvin Minsky > > > Thanks, Walt ***************************************************** Walter Szewelanczyk IS Director M.W. Sewall & CO. email : walter@mwsewall.com 259 Front St. Phone : (207) 442-7994 x 128 Bath, ME 04530 Fax : (207) 443-6284 *****************************************************