summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-21 04:28:33 +0000
committerPaul Phillips <paulp@improving.org>2011-06-21 04:28:33 +0000
commitb3b9dbaee24050c1ce3c9711935e3b88ae2b8553 (patch)
treec7763b92be685a032dddb1dae1aa8eaf8e7a4bdb
parentdd511e1a1ad51206ff4dc5bfbf6caea4be5d4457 (diff)
downloadscala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.tar.gz
scala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.tar.bz2
scala-b3b9dbaee24050c1ce3c9711935e3b88ae2b8553.zip
Deprecated BigInt#~ in favor of unary_~.
-rw-r--r--src/library/scala/math/BigInt.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/library/scala/math/BigInt.scala b/src/library/scala/math/BigInt.scala
index b8ddd54233..687b6c9713 100644
--- a/src/library/scala/math/BigInt.scala
+++ b/src/library/scala/math/BigInt.scala
@@ -256,9 +256,12 @@ class BigInt(val bigInteger: BigInteger) extends ScalaNumber with ScalaNumericCo
*/
def signum: Int = this.bigInteger.signum()
- /** Returns the bitwise complement of this BigNum
+ @deprecated("Use ~bigInt (the unary_~ method) instead", "2.10.0")
+ def ~ : BigInt = ~this
+
+ /** Returns the bitwise complement of this BigInt
*/
- def ~ : BigInt = new BigInt(this.bigInteger.not())
+ def unary_~ : BigInt = new BigInt(this.bigInteger.not())
/** Returns true if and only if the designated bit is set.
*/