From: "Wolfgang Nádasi-Donner" Date: 2007-11-15T03:30:16+09:00 Subject: Re: Proc#hash returns different values for same body I made another comparison with Ruby 1.8... C:\Dokumente und Einstellungen\wolfgang>ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] C:\Dokumente und Einstellungen\wolfgang>irb irb(main):001:0> p = lambda{} => # irb(main):002:0> proc(&p).hash => 22169910 irb(main):003:0> proc(&p).hash => 22159870 irb(main):004:0> proc(&p).hash => 22633070 irb(main):005:0> proc(&p).hash => 22622090 irb(main):006:0> exit C:\Dokumente und Einstellungen\wolfgang>ruby19 -v ruby 1.9.0 (2007-11-13 patchlevel 0) [i386-mingw32] C:\Dokumente und Einstellungen\wolfgang>irb19 irb(main):001:0> p = lambda{} => # irb(main):002:0> proc(&p).hash => 4834015 irb(main):003:0> proc(&p).hash => 4834015 irb(main):004:0> proc(&p).hash => 4834015 irb(main):005:0> exit ...and would like to give the interpretation, that Proc#hash returns in Ruby 1.9 the same hash code, if the same block is used in form of a proc object. In Ruby 1.8 this is not the case. Is this somehow (~English phrasing problems) the correct interpretation? - If "yes" then the "ri" result together with the example in http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9#l165 is misleading. Wolfgang N��dasi-Donner