We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[testors@macpro:~/Work/ruby-shooter]$ ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] [testors@macpro:~/Work/ruby-shooter]$ jruby -v jruby 9.0.0.0.pre2 (2.2.2) 2015-04-28 2755ae0 Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64] [testors@macpro:/opt/jruby9k/lib/ruby/stdlib]$ irb irb(main):001:0> require 'ffi' => true irb(main):002:0> a = FFI::Pointer.new(0) => #<FFI::Pointer address=0x00000000000000> irb(main):003:0> b = FFI::Pointer.new(0) => #<FFI::Pointer address=0x00000000000000> irb(main):004:0> a.eql? b => false irb(main):005:0> Hash[a,true][b] => nil [testors@macpro:~/Work/ruby-shooter]$ jirb irb(main):001:0> a = FFI::Pointer.new(0) => #<FFI::Pointer address=0x0> irb(main):002:0> b = FFI::Pointer.new(0) => #<FFI::Pointer address=0x0> irb(main):003:0> a.eql? b => false irb(main):004:0> Hash[a,true][b] => true
The text was updated successfully, but these errors were encountered:
Must be a difference in how FFI::Pointer does hash or eql?. Checking.
Sorry, something went wrong.
Ahh yes. Pointer extends AbstractMemory, which defines eql to be .equals, and these two pointers are "equals".
I guess the question is which behavior is preferable!
Remove incorrect "eql" override that uses value equality.
a6db2cd
Fixes #2995.
7551aa7
I believe @wmeissner accidentally copied this logic over, and so I have removed it.
Add spec for Pointer eql?'ity for #2995.
207c3c2
e0b1489
No branches or pull requests
The text was updated successfully, but these errors were encountered: