Last active
December 30, 2015 17:39
-
-
Save twerth/7862187 to your computer and use it in GitHub Desktop.
RubyMotion - Comparing some objects to same object in WeakRef fails
tickets 1420 filed
This file contains 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
(main)> a = ‘test’ | |
=> "test" | |
(main)> b = WeakRef.new(a) | |
=> "test" | |
(main)> b == a | |
=> true | |
(main)> a == b | |
=> true | |
(main)> c = UIViewController.alloc.init | |
=> #<UIViewController:0×963c630> | |
(main)> d = WeakRef.new(c) | |
=> #<UIViewController:0×963c630> | |
(main)> c == d | |
=> false | |
(main)> d == c | |
=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment