Created
January 30, 2012 06:16
-
-
Save justinko/1702877 to your computer and use it in GitHub Desktop.
Ruby 1.8 Proc equality bug
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
a = lambda {} | |
b = a.dup | |
m = Module.new | |
a.extend m | |
b.extend m | |
puts a == b # true for 1.9, false for 1.8 :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment