From: matz@... (Yukihiro Matsumoto) Date: 2003-09-25T00:51:15+09:00 Subject: Re: ostruct.rb patch Hi, In message "Re: ostruct.rb patch" on 03/09/24, "Nathaniel Talbott" writes: |> You define == and hash, not eql? and hash, right? |> What is the purpose of redefining #hash? | |Oops! I forgot that #eql?, not #==, is the #hash counterpart (there's |entirely too much Java in my past). I'll drop the redefinition of #hash. Show me the latest diff. I think I will agree to apply it. |I hadn't thought of that. Do you think a protected method is better? I'm |assuming it's probably faster. I didn't measure statistic, but at least this is a purpose of Ruby's protected method designed. matz.