Created
September 20, 2012 18:49
-
-
Save zephyr-dev/3757639 to your computer and use it in GitHub Desktop.
Bug with DelegateClass & Array subtraction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
astoria:gust (master) ng bm$ irb --simple-prompt | |
>> require 'delegate' | |
=> true | |
>> class Foo < DelegateClass(Object) | |
>> end | |
=> nil | |
>> f = Foo.new(Object.new) | |
>> array1 = [[f]] | |
=> [[#<Object:0x007fc92ab72168>]] | |
>> array2 = [[f]] | |
=> [[#<Object:0x007fc92ab72168>]] | |
>> array1 == array2 | |
=> true | |
>> array1 - array2 | |
=> [[#<Object:0x007fc92ab72168>]] | |
# ???????? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment