Created
February 25, 2013 00:16
-
-
Save DAddYE/5026405 to your computer and use it in GitHub Desktop.
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
# Ruby 1.9 | |
4.2.object_id == 4.2.object_id # => false | |
# Ruby 2.0 | |
warn "Optimization only on 64 bit systems" unless 42.size * 8 == 64 | |
4.2.object_id == 4.2.object_id # => true (4.2 is immediate) | |
4.2e100.object_id == 4.2e100.object_id # => false (4.2e100 isn't) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment