This behavior seems very strange (and is breaking one of my scripts):

C:\Documents and Settings\ntalbott\Desktop>type a.rb
def a(b, &c)
        p b == c
        p b, c
        p b.hash, c.hash
end

d = proc {}
a(d, &d)

C:\Documents and Settings\ntalbott\Desktop>ruby a.rb
true
#<Proc:0x2a98088>
#<Proc:0x2a98088>
22331332
22331028

C:\Documents and Settings\ntalbott\Desktop>ruby -v
ruby 1.7.2 (2001-11-28) [i586-mswin32]

I would have expected the proc to still have the same hash as itself!
This behavior also occurs for me on 1.6.4. Is this a bug? If not, what's
the feature?


Nathaniel

<:((><
+ - -
| RoleModel Software, Inc.
| EQUIP VI