Skip to content

Implement Proc#== and #eql? - #3174

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:proc-equality-14267
Jun 19, 2020
Merged

Implement Proc#== and #eql?#3174
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:proc-equality-14267

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

Previously, these were not implemented, and Object#== and #eql?
were used. This tries to check the proc internals to make sure
that procs created from separate blocks are treated as not equal,
but procs created from the same block are treated as equal, even
when the lazy proc allocation optimization is used.

Implements [Feature #14267]

Previously, these were not implemented, and Object#== and #eql?
were used.  This tries to check the proc internals to make sure
that procs created from separate blocks are treated as not equal,
but procs created from the same block are treated as equal, even
when the lazy proc allocation optimization is used.

Implements [Feature ruby#14267]
@jeremyevans

Copy link
Copy Markdown
Contributor Author

Failures in mingw are due to socket related issues, unrelated to this change.

@ko1

ko1 commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

This PR proposes definition of Proc equivalence, but it should be not trivial.
Could you make a ticket to propose a definition of it?

@jeremyevans

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants