Project

General

Profile

Actions

Bug #4323

closed

Proc#hash is Ill-Behaved

Added by runpaint (Run Paint Run Run) over 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-01-19 trunk 30597) [x86_64-linux]
Backport:
[ruby-core:34854]

Description

=begin
Proc#hash is not predictable for receivers that are #eql?

 irb> ->{}.hash
 => -1250381286238705236
 irb> ->{}.hash
 => 2684657672161532106
 irb> ->{true}.hash
 => -2939885723276364833
 irb> ->{true}.hash
 => -3124033653404588619
 irb> proc{}.hash
 => -47014914982973166
 irb> proc{}.hash
 => -744699484074399895

=end


Files

proc-hash.patch (650 Bytes) proc-hash.patch runpaint (Run Paint Run Run), 01/26/2011 06:35 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #4559: Proc#== does not match the documented behaviourClosedko1 (Koichi Sasada)04/07/2011Actions
Actions

Also available in: Atom PDF