Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 14, 2012
  1. @paulp

    Merge commit 'refs/pull/387/head'; commit 'refs/pull/388/head'; commi…

    paulp authored
    …t 'refs/pull/392/head'; commit 'refs/pull/397/head' into develop
  2. @paulp

    Move primitive widening implicits to companions.

    paulp authored
    Take a 15-implicit load off Predef and put it where it belongs: on
    those brave souls who like their longs to get floaty by way of T.
Commits on Jan 30, 2012
  1. @paulp
Commits on Jan 28, 2012
  1. @paulp

    Unsealed AnyVal.

    paulp authored
    Hacks here and there to allow them to survive at least
    to erasure.  Since nothing is done with them there yet, they
    inevitably crash and burn a little ways beyond that.
Commits on Jun 22, 2011
  1. @paulp

    A total rewrite of "runtimeClass", discarding t...

    paulp authored
    A total rewrite of "runtimeClass", discarding the user-space approach in
    favor of simply fixing getClass.
      def f1 = 5.getClass                       // Class[Int]
      def f2 = (5: AnyVal).getClass             // Class[_ <: AnyVal]
      def f3 = (5: java.lang.Integer).getClass  // Class[_ <: java.lang.Integer]
      class A
      class B extends A
      def f1 = (new B: Any).getClass().newInstance()      // Any
      def f2 = (new B: AnyRef).getClass().newInstance()   // AnyRef
      def f3 = (new B: A).getClass().newInstance()        // A
      def f4 = (new B: B).getClass().newInstance()        // B
    But that's not all!
      def f0[T >: B] = (new B: T).getClass().newInstance()
      def f5 = f0[Any]        // Any
      def f6 = f0[AnyRef]     // AnyRef
      def f7 = f0[A]          // A
      def f8 = f0[B]          // B
    Closes #490, #896, #4696. Review by moors. (Note: I think this is pretty
    good, but picky review requested.)
Commits on Apr 1, 2011
  1. @paulp

    A less ad hoc infrastructure for generating Any...

    paulp authored
    A less ad hoc infrastructure for generating AnyVal sources. A few more
    comments on said sources. No review.
  2. @paulp

    Working on the documentation of core classes.

    paulp authored
    withdraw some of the goodness I banked a while ago with the AnyVal
    types. Started on what will culminate in the total elimination of
    SourcelessComments. Cleaned up the docs on ancient classes like Product.
    More to come. No review.
Commits on Mar 15, 2011
  1. @paulp

    Addresses the issues swirling around Double.Eps...

    paulp authored
    Addresses the issues swirling around Double.Epsilon and friends which
    were battled out in more than one venue and then aptly summarized by
    retronym in #3791. Thanks to Simon Ochsenreither for submitting a patch;
    I wasn't able to use too much of it because the source code for these
    types is generated, but effort is always appreciated. Closes #3791, and
    I'm tired and I'd hate to blow this one at this late date: review by
Commits on Jan 24, 2011
  1. @paulp

    The AnyVal types become source files instead of...

    paulp authored
    The AnyVal types become source files instead of polite compiler
    !! You'll need a serious "ant all.clean" now. !!
    As of this commit the system is fully bootstrapped and the
    synthetic code eliminated: only the source files remain. The
    sort-of-AnyVal-companions in scala.runtime.* have all been eliminated
    because the actual companions can do everything; deprecated vals in
    the scala.runtime package object point to the companions. This left
    AnyValCompanion as the only AnyVal related thing in the runtime package:
    that made little sense, so I deprecated and moved it as well.
    Starr is based on r24066 plus this commit. Closes #4121. Review by rytz,
Something went wrong with that request. Please try again.