Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] BigDecimal basic operations improvements, comparisons, to_s #2961

Merged
merged 1 commit into from May 20, 2015

Conversation

pitr-ch
Copy link
Member

@pitr-ch pitr-ch commented May 19, 2015

No description provided.


def ==(other)
(self <=> other) == 0
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include-ing Comparable should already do this, but it might have some differences regarding exceptions rescued.

@pitr-ch pitr-ch force-pushed the bigdecimal branch 2 times, most recently from 04c332f to 6340417 Compare May 20, 2015 09:15
@pitr-ch
Copy link
Member Author

pitr-ch commented May 20, 2015

Thanks for your comments, fixed.

@@ -0,0 +1,87 @@
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually just do a require_relative to avoid the copy, see lib/ruby/truffle/mri/abbrev.rb for instance.
Or require_relative '../../../stdlib/rubygems/' + File.basename(__FILE__) if you do not want to hardcode the basename of the current file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks

@chrisseaton chrisseaton self-assigned this May 20, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone May 20, 2015
chrisseaton added a commit that referenced this pull request May 20, 2015
[Truffle] BigDecimal basic operations improvements, comparisons, to_s
@chrisseaton chrisseaton merged commit 29b11a2 into jruby:master May 20, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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.

None yet

4 participants