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

Change BigInt.~ to BigInt.unary_~ #4659

Closed
scabug opened this issue May 31, 2011 · 6 comments
Closed

Change BigInt.~ to BigInt.unary_~ #4659

scabug opened this issue May 31, 2011 · 6 comments
Assignees

Comments

@scabug
Copy link

scabug commented May 31, 2011

Class scala.math.BigInt defines a method ~ for bitwise complement. This method should instead be declared unary_~ for consistency with Int, Long, etc. which use prefix ~ to denote complement.

@scabug
Copy link
Author

scabug commented May 31, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4659?orig=1
Reporter: Harrison Klaperman (hlklaperman)
Affected Versions: 2.9.0

@scabug
Copy link
Author

scabug commented May 31, 2011

Harrison Klaperman (hlklaperman) said:
Wow. The formatting there got totally messed up. Evidently, enclosing a ~ in double curly braces won't make it render in a fixed width font, presumably because the ~ is taken to be a subscript marker. Probably ruined the previous sentence as well. I hope this doesn't happen in code blocks: (if this new bug system formats code blocks like track)
{{{
val x = z & ~y
}}}

@scabug
Copy link
Author

scabug commented May 31, 2011

@soc said:
This pull request will add scala/scala#32 unary_~ and deprecate ~.

@scabug
Copy link
Author

scabug commented May 31, 2011

Harrison Klaperman (hlklaperman) said (edited on May 31, 2011 7:01:40 PM UTC):
That change will do it. Is it possible for the fix to be integrated into the next bugfix version (2.9.0.2 or 2.9.1) instead of 2.10?

@scabug
Copy link
Author

scabug commented Jun 1, 2011

@soc said (edited on Jun 1, 2011 10:06:02 AM UTC):
I just wrote the patch. No idea, if it will be accepted at all.

@scabug
Copy link
Author

scabug commented Jun 21, 2011

Commit Message Bot (anonymous) said:
(extempore in r25122) Deprecated BigInt#~ in favor of unary_~. Closes #4659, no review.

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

No branches or pull requests

2 participants