Skip to content

Instantly share code, notes, and snippets.

@justinko
Created January 30, 2012 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinko/1702877 to your computer and use it in GitHub Desktop.
Save justinko/1702877 to your computer and use it in GitHub Desktop.
Ruby 1.8 Proc equality bug
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