diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-01 18:15:49 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-01 18:15:49 +0000 |
commit | f82acf5d370111cb96f39332c28177f186a88f10 (patch) | |
tree | 92b5241f2e01519e5fe26c3b525d8de960793743 /src/library/scala/collection/immutable/Range.scala | |
parent | 445ade0bbd17d8d9336d96fe3804c64e233e8b89 (diff) | |
download | scala-f82acf5d370111cb96f39332c28177f186a88f10.tar.gz scala-f82acf5d370111cb96f39332c28177f186a88f10.tar.bz2 scala-f82acf5d370111cb96f39332c28177f186a88f10.zip |
Reducing the sbt launcher footprint by eliminat...
Reducing the sbt launcher footprint by eliminating val references
which go through the scala package object, since they lead to
otherwise unnecessary classes becoming required at startup. Mostly
this means library files with constructors like "Iterator.empty" or
"Stream.continually" receive a direct import of that companion. The one
slightly less than cosmetic change was moving the strange xml value
"$scope" back into Predef, because otherwise I have to touch the xml
code generation. No review.
Diffstat (limited to 'src/library/scala/collection/immutable/Range.scala')
-rw-r--r-- | src/library/scala/collection/immutable/Range.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/collection/immutable/Range.scala b/src/library/scala/collection/immutable/Range.scala index 7bd3764e3e..ef0f08bcfb 100644 --- a/src/library/scala/collection/immutable/Range.scala +++ b/src/library/scala/collection/immutable/Range.scala @@ -287,7 +287,7 @@ object Range { // imprecision or surprises might result from anything, although this may // not yet be fully implemented. object BigDecimal { - implicit val bigDecAsIntegral = scala.Numeric.BigDecimalAsIfIntegral + implicit val bigDecAsIntegral = scala.math.Numeric.BigDecimalAsIfIntegral def apply(start: BigDecimal, end: BigDecimal, step: BigDecimal) = NumericRange(start, end, step) @@ -302,9 +302,9 @@ object Range { // is necessary to keep 0.3d at 0.3 as opposed to // 0.299999999999999988897769753748434595763683319091796875 or so. object Double { - implicit val bigDecAsIntegral = scala.Numeric.BigDecimalAsIfIntegral - implicit val doubleAsIntegral = scala.Numeric.DoubleAsIfIntegral - def toBD(x: Double): BigDecimal = scala.BigDecimal valueOf x + implicit val bigDecAsIntegral = scala.math.Numeric.BigDecimalAsIfIntegral + implicit val doubleAsIntegral = scala.math.Numeric.DoubleAsIfIntegral + def toBD(x: Double): BigDecimal = scala.math.BigDecimal valueOf x def apply(start: Double, end: Double, step: Double) = BigDecimal(toBD(start), toBD(end), toBD(step)) mapRange (_.doubleValue) |