Commit Graph

13670 Commits

Author SHA1 Message Date
cunei e02ae42848 bumping up the version number in trunk.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24480 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-17 16:53:12 +00:00
extempore c5099c3bda Rebuilt jline for java 1.5. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24476 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-17 15:32:13 +00:00
kzys d6ff1eb9e3 [scaladoc] Closes #4306. Review by extempore.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24473 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-17 11:40:03 +00:00
phaller 3bbea71650 Removed uniqueness annotations. Review by rytz.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24472 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-17 09:55:42 +00:00
extempore 7b9da64cfe Undoing some much too hacky code to implement a -jar option and
then following wherever that led me.  Tangible results include:

 * much beautified scala -help, including documenting some things
   never before documented in this plane of existence
 * an improved Jar abstraction
 * further systemization of system properties

In addition, the jars created by -savecompiled are given the right
manifest so the jar is runnable.  That means you can:

  scala -savecompiled bippy.scala arg1 arg2
  scala -jar bippy.scala.jar arg1 arg2

And both lines should yield the same result.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24470 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-16 07:49:16 +00:00
extempore 984d294a2f Deprecation patrol. There was a bug among the deprecation
warnings due to my changing a map from mutable to immutable (which
ought to be the good direction) because "def update" still
lingers on immutable maps.  I counted the days elapsed since it
was marked for death (before 2.8.0) and added in the bugliness
of what I was looking at and bid it farewell.

Now removed: def update on immutable maps.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24469 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-16 06:31:59 +00:00
extempore f23af514b8 Leveraged having a place to put some useful implicits which we
sensibly are reluctant to introduce in the default scope.  The
test case pretty much sums it up.

  import Ordering.Implicits._
  import Numeric.Implicits._

  def f1[T: Numeric](x: T, y: T, z: T)  = x + y + z
  def f2[T: Ordering](x: T, y: T, z: T) = if (x < y) (z > y) else (x < z)

No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24468 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 20:41:57 +00:00
extempore 5ffa2a482c Brought all the collections pure interfaces up to date. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24467 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 18:34:48 +00:00
phaller ae588749f2 Closes #3838. Review by prokopec.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24466 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 16:42:00 +00:00
odersky a79761ac74 Fixes problem with getLinkPos, which sometimes failed on first try.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24465 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 16:18:48 +00:00
rytz 1cac2407fb improved documentation for annotations in scala.annotation.target. closes #4250, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24464 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 14:09:47 +00:00
extempore 8f330366b2 Slight tweak to case class deprecation message, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24463 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 06:18:02 +00:00
extempore 2ea48920fd Deprecated scala.dbc. Wish there was a better way to deprecate a
package than deprecating every individual thing.  (There isn't, is
there?) Closes #4313, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24462 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 05:55:38 +00:00
extempore b25198b965 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 rytz.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24461 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 04:02:35 +00:00
extempore 63fa1b5291 Various chronic annoyances with the repl addressed. Much improved
transcript pasting. Now goes back in time to fix the transcript if it
contains self-referential "res0, res1" etc. so that it works as it
originally did.  Shows which commands it is running, and places the
commands with their result in a manner suitable for framing.

Also, a new :paste command which accepts input up to ctrl-D, so you
can enter companions without gyrations, or code from people who write
in a repl unfriendly fashion by putting their curly braces on the next
line (I'm looking at you mark harrah) or you name it, it's not picky.

No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24460 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 02:56:58 +00:00
extempore ed21804c57 Fix for a jline/history bug when the history file didn't already
exist.  Also expunged a bunch of history code which didn't get
where it was going, including everything involving shutdown hooks.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24459 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 02:56:39 +00:00
plocinic 83152c9af1 Closes #4163. no review
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24458 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 20:25:11 +00:00
plocinic 8c49e09c04 Applied second patch by asloane. closes #3969. no review
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24457 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 20:24:57 +00:00
odersky 3a5035f677 Fixing the build.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24444 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 18:04:45 +00:00
odersky 0b6e3a1878 new test.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24443 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 14:47:09 +00:00
odersky 6c7dd2c1d3 Removing everything in trait Dynamic.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24442 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 14:36:11 +00:00
odersky 8c7b6e2510 Closes #4300. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24441 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 14:35:38 +00:00
odersky 99cc7b834e Changed Super to fix #4300
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24440 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 11:43:13 +00:00
extempore 6095cea04a Raised the threshold for the test looking at view performance.
I guess if views are only 50x as slow on windows that's still
a lot better than 100,000.  (The real issue is more like
"it's windows" plus "it's windows running on virtualbox".)
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24439 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-14 04:05:07 +00:00
extempore 8b448635f2 A small addition to the library to address something bugging me
forever.  It's a light interface to system properties. It's not
intended to solve all property issues for all time, only to greatly
improve on the overly ad-hoc ways things are presently done.
Feedback welcome.  Sorry it's coming in this late but it arises
from writing the tools to fix the bugs to allow that release to happen.
That's nature's circle of bugs.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24437 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-12 18:13:12 +00:00
extempore 43a6cd5f59 Fixed up the regression I slipped in with slice. Thanks to prokopec
for pointing me toward the problem.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24436 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-12 01:59:46 +00:00
prokopec a4462caac5 Fixes the broken test, introduced in the view patch commit.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24434 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-11 23:07:08 +00:00
malayeri e64aca37f1 Added a callback to Global.Run for fine-grain progress reporting, to used by e.g., the Eclipse plugin.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24433 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-11 15:54:57 +00:00
extempore befa5d1a93 A patch for views. Most relevant change:
Almost all view classes now list parents like
    trait Appended[B >: A] extends super.Appended[B] with Transformed[B]
  instead of the former
    trait Appended[B >: A] extends Transformed[B] with super.Appended[B]

because as it was, the implementation of foreach in TraversableViewLike#Transformed
was repeatedly trumping overrides found in e.g. IterableLike.  This change
was not without its own consequences, and much of the rest of the patch
is dealing with that.  A more general issue is clearly revealed here: there
is no straightforward way to deal with trait composition and overrides when
some methods should prefer B over A and some the reverse.  (It's more like
A through Z in this case.)

That closes #4279, with some views being five orders of magnitude slower
than necessary.  There is a test that confirms they'll stay performance
neighbors.

In the view classes (Zipped, Mapped, etc.) I attended to them with comb and
brush until they were reasonably consistent.  I only use "override" where
necessary and throw in some "final" in the interests of trying to anchor the
composition outcome.  I also switched the newSliced, newZipped, etc. methods
to use early init syntax since a number have abstract vals and I found at least
one bug originating with uninitialized access.

There was a piece of a parallel collections scalacheck test failing, which
I disabled out of expedience - am emailing prokopec.

There is plenty of work left to do but paulp must get back to other 2.9 issues.
This is the Zurich->SF airplane patch.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24432 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-11 12:13:58 +00:00
odersky f29920ab27 Added askStructure method.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24430 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-10 14:43:05 +00:00
odersky e85bfbb6b1 Added assert that deferring cases of askLoadedTyped and askParsedEntered are not called from within an ask, as this would cause a deadlock.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24429 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-10 14:42:50 +00:00
prokopec f22c154448 Removed the `par` method from numeric ranges.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24428 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-10 08:47:45 +00:00
prokopec 42396f7f5b Adding special take and drop for numeric ranges, and a test. Parallel numeric ranges are added, but currently disabled.
Review by extempore.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24427 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-10 08:46:24 +00:00
prokopec 626ee80d4e Fixes and closes #4328.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24425 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-09 16:17:21 +00:00
odersky 2934866ea5 Avoids continuous background compiler running
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24424 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-09 11:35:21 +00:00
moors 009b827882 closes #3446 and improves parsing speed by encoding lazy arguments using CBN args and lazy vals.
should avoid needlessly recomputing parsers
review by plocinic (so you can include a version that uses the direct support for lazy args in your branch)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24422 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 23:03:33 +00:00
extempore e834635f4e One last build break and unbreak so I can be fondly remembered
as that guy who kept breaking the build.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24421 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 18:28:27 +00:00
odersky 25765188f2 Cleaned up PC logix dealing with waiting responses.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24420 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 17:08:43 +00:00
extempore 254ea7b793 Moved SeqDerived into an Ordering.Implicits object.
Closes #3152 (only mopping up), no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24419 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 16:32:16 +00:00
extempore c70221f6df Reverted r24388. ArraySeq will have to wait a little longer for a
decent Array/specialization solution.  Reopens #2996, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24418 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 16:32:12 +00:00
odersky 0dacd3aec3 Fixed possible unsynchronized access to getEnteredParsed which might lead to sticky PC errors.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24417 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:49:40 +00:00
extempore 92e6e790a4 Added StringLike to the list of things the repl lets print
themselves.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24416 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:48:48 +00:00
phaller 7ca20d1c95 Added documentation in annotation.unique package object. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24415 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:41:49 +00:00
extempore 357cf3305e An overhaul of slice and related implementations (primarily
that is drop and take.) In the course of trying to get it working
consistently (mostly with respect to negative indices, which were
dealt with arbitrarily differently across the 25+ concrete
implementations) I fixed various bugs.

Closes #4288, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24414 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:40:53 +00:00
extempore 542f16d094 Fix for drop bug in parallel collections iterator revealed during
slice work.  Review by prokopec.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24413 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:40:48 +00:00
phaller 2fc7dc1eb7 Closes #2239.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24412 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 15:31:46 +00:00
dragos 4c61f4f1ae One more attempt at fixing the windows build. no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24411 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 12:21:04 +00:00
imaier c089481b30 Closes #4314
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24409 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 10:06:10 +00:00
prokopec 85b0814dac Added few lines of clarification in the docs of ParallelIterableLike.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24408 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-08 07:56:58 +00:00
malayeri 790dcd87b3 Modify BufferedSource to use a BufferedLineIterator to speed up line-by-line reads on large files. Updated testfile which used this class. Closes #4186. Review (of fft.check) by prokopec.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24406 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-07 22:35:36 +00:00