Deprecated BigInt#~ in favor of unary_~. Closes #4659, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25122 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
extempore 2011-06-21 04:28:33 +00:00
parent 33db9ea391
commit a5c79ca226
1 changed files with 5 additions and 2 deletions

View File

@ -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.
*/