summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Tail recursive implementation of mapConserve, s...Paul Phillips2010-09-202-18/+74
| | | | | | Tail recursive implementation of mapConserve, submitted by Eric Willigers. Closes #2411, review by malayeri.
* Test case closes #2162, no review.Paul Phillips2010-09-202-0/+21
|
* Adds links from letters to the reference index ...Pedro Furlanetto2010-09-204-15/+20
| | | | | | | Adds links from letters to the reference index on the upper section of the left frame. Needs some layout/color improvements. Review by dubochet.
* Mostly a setup commit.Paul Phillips2010-09-196-72/+155
| | | | | | | impressively tedious it is to work directly with the AST, so I picked up TreeDSL again and fleshed it out some more. And then I did a once over on SyntheticMethods beating out bits of duplication. No review.
* Guard against overflow in fjbg.Paul Phillips2010-09-193-4/+12
|
* Fixes #3850, no review.Paul Phillips2010-09-181-0/+6
|
* Fixed an issue with ListSet getting confused ab...Paul Phillips2010-09-182-4/+12
| | | | | | Fixed an issue with ListSet getting confused about what goes forward and what goes backward. No review.
* Removed unnecessary param. Review by milessabin.Martin Odersky2010-09-181-1/+1
|
* added typedLastTree functionality to CompilerCo...Martin Odersky2010-09-184-8/+39
| | | | | | added typedLastTree functionality to CompilerControl. Avoid some "tree not found" errors. Review by milessabin.
* Better unlocking behavior when exceptions are r...Martin Odersky2010-09-182-5/+9
| | | | | Better unlocking behavior when exceptions are raised. Review by moors.
* Fixed long standing annoyance which prevents th...Paul Phillips2010-09-181-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed long standing annoyance which prevents the same source file from being used as both a script and a program. If a script has only a single top level object with a main method, then that is the object to which arguments will be passed. (Contrast with the current situation, where a wrapper object is wrapped around it and the script will never do anything since there is nothing which can reference the object.) So now you can do this: % cat script.scala object FiddleDeeMain { def main(args: Array[String]): Unit = { println(args mkString " ") } } % scala -nocompdaemon script.scala a b c a b c % scala script.scala a b c a b c % scalac script.scala % scala FiddleDeeMain a b c a b c Closes #1173, review by community.
* Restoring negative literal parsing behavior to ...Paul Phillips2010-09-174-27/+62
| | | | | | | | | | | | | | | | | | | | | Restoring negative literal parsing behavior to what should be the least surprising option. Thanks much to Johannes Rudolph for identifying the bug in the bytecode generator which needed addressing for us to arrive at proper -0.0 behavior, and for writing the majority of this patch. A '-' followed immediately by either a number or a period should now always be treated as a single numeric literal, which means the minus binds more tightly than anything else. A specific example of how this differs from 2.8 final is: -5.+(10) == 5.0 // and not -15.0 The full range of potentially ambiguous parses involving prefix operators, numbers, and dots is quite large and still needs to be completely and clearly specified. Closes #2378 and #3657, review by odersky, jrudolph.
* Refactorings to make iterators required by task...Aleksandar Pokopec2010-09-177-190/+132
| | | | | | Refactorings to make iterators required by task objects less restricted. No review
* Correctly get all scope symbols and members.Eugene Vigdorchik2010-09-171-7/+5
|
* Some tweaks to ListSet to make it less patholog...Paul Phillips2010-09-173-13/+70
| | | | | | | | | | | | | | | Some tweaks to ListSet to make it less pathological in its outlook. We can see some modest improvements in run time and answer quality via the enclosed test case: // with this patch: 2.250s elapsed, assertions pass. // without this patch: 51.441s elapsed, and it's a mercy killing: java.lang.StackOverflowError at scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117) at scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117) Closes #3822, review by community.
* Does what can probably be done about strange it...Paul Phillips2010-09-173-2/+31
| | | | | | | Does what can probably be done about strange iterator exhaustion behavior. Maybe we should start thinking about iteratees... Closes #3760, no review.
* Modified XMLEventReader to write dummy <ignore/...Paul Phillips2010-09-171-1/+8
| | | | | | Modified XMLEventReader to write dummy <ignore/> tag only once. Contributed by Jean-Laurent Huynh, reviewed by extempore. Closes #3840.
* Modified xCharData to call handle.text on CDATA.Paul Phillips2010-09-171-9/+28
| | | | | | support in MarkupParser to use a Queue instead of a Stream. Contributed by Jean-Laurent Huynh, reviewed by extempore. Closes #3720.
* Made transpose not fail on an empty collection.Paul Phillips2010-09-171-0/+3
| | | | | | but remains open until we determine how to handle jagged lists. No review.
* argh -- merge failure?? -- this was fixedAdriaan Moors2010-09-161-1/+1
|
* part 2 of the dependent method refactoring: imp...Adriaan Moors2010-09-1621-109/+533
| | | | | | | | | | | | | | | part 2 of the dependent method refactoring: improved interaction with implicit search (needed for oopsla paper) more to come in this area, see e.g. #3346 (stanford edsl stuff) reopens #13, which wasn't fixed properly before imo, anyway (have a look at -Xprint:typer output before this commit: a type that's not expressible in surface syntax is inferred -- also removed duplicate test file) closes #3731: co-evolve type alias type symbols when their rhs is updated and they are referenced by type selections (see typemap) review by odersky
* closes #1569, #3731: refactored dependent metho...Adriaan Moors2010-09-1625-182/+283
| | | | | | | | | | | | | | closes #1569, #3731: refactored dependent method types to get rid of debruijn indices and use singleton types instead. this is the core of the dependent types refactoring, no implicit or inference changes (one baffling discovery: resultType should drop annotations that don't subclass TypeConstraint, even in the trivial case... wow -- thanks to Tiark for helping me figure it out on a terrace in Barcelona TODO: probably need a more principled approach to the propagation of plugin type-annotations) review by odersky
* include all symbols from enclosing scopes as we...Eugene Vigdorchik2010-09-161-3/+7
| | | | | | include all symbols from enclosing scopes as well as member of enclosing class chain. review by odersky
* Closes #3779.Iulian Dragos2010-09-161-2/+20
|
* Little type in documentation; closes #3386.Antonio Cunei2010-09-161-1/+1
|
* Adds a reference index to the documentation.Pedro Furlanetto2010-09-165-4/+152
| | | | | | | | | Currently there is no link from the main index but can be viewed by replacing 'index.html' with 'index/index-a.html' in the browser address bar. Review by dubochet.
* Overrode addString in TraversableViewLike.Paul Phillips2010-09-162-2/+5
| | | | | | | | | | | | | | | the Transform-derived traits within view resisted evaluating the entire sequence on a toString call, but the original view returned from a call to .view did not. This has a particularly bad result in the case of Stream, as for instance: Stream from 1 view would enter infiniteloopiland in the repl despite the fact that it should be doubly resistant to eager evaluation. Review by prokopec.
* Test for already closed #3088. No review.Paul Phillips2010-09-161-0/+9
| | | | | | | [Editorial correction: r23000 was submitted by Johannes Rudolph and my name inadvertently replaced his in the windy path from git to svn. The comments and code are his. Posterity, take note!]
* positioning fix for infix expressions: report e...Paul Phillips2010-09-159-10/+21
| | | | | | | | | | | | positioning fix for infix expressions: report error at the operator instead of at the receiver of a binop In general use the operator position as the Select position's point instead of the left or right expression. Position.union always uses the receiver's point as point of the result, so swapping fixes that. See http://www.scala-lang.org/node/6912 for the report.
* Gave StringBuilder a StringLike parent as endor...Paul Phillips2010-09-156-10/+29
| | | | | | Gave StringBuilder a StringLike parent as endorsed by martin in http://www.scala-lang.org/node/6893 . Review by odersky.
* Never generate the ACC_SYNTHETIC flag in byteco...Paul Phillips2010-09-151-2/+1
| | | | | | Never generate the ACC_SYNTHETIC flag in bytecode, based on my 19 months old reasoning laid out in yon ticket. Closes #1128, review by dragos.
* Removed Throw from the set of unlabelled AST No...Paul Phillips2010-09-152-1/+7
| | | | | | Removed Throw from the set of unlabelled AST Nodes. Closes #3534, review by dragos.
* Added implicits to create Orderings from java's...Paul Phillips2010-09-153-41/+55
| | | | | | | Added implicits to create Orderings from java's Comparable and Comparator interfaces. Also some cleanup in Sorting. Review by community.
* Stream gets a specialized, extra-lazy Iterator ...Paul Phillips2010-09-152-0/+34
| | | | | | | | Stream gets a specialized, extra-lazy Iterator so it can iterate as lazily as it traverses. Patch submitted by "Eastsun": probably not his real name, but that's what we call him. Closes #3273, review by prokopec.
* Fixes reporting the number of documentable temp...Pedro Furlanetto2010-09-151-1/+2
| | | | | | Fixes reporting the number of documentable templates. Review by dubochet.
* Shield interrupts against exceptions in user codeEugene Vigdorchik2010-09-151-3/+10
|
* Adding interrupts should wake the serverEugene Vigdorchik2010-09-151-0/+1
|
* Close #3835, review by extemporeLukas Rytz2010-09-143-1/+7
|
* closes #1693: improve implicit conversion disam...Adriaan Moors2010-09-144-17/+42
| | | | | | | | | | | closes #1693: improve implicit conversion disambiguation by incorporating the expected type of the member that triggered the conversion back-ported fix by Martin in embeddings branch. review by odersky (just in case it shouldn't have been back-ported)
* Enabled partest to run entire directories for s...Aleksandar Pokopec2010-09-141-1/+1
| | | | | | Enabled partest to run entire directories for scalacheck test group. Review by extempore.
* Improved parallel scan performance further.Aleksandar Pokopec2010-09-144-15/+122
|
* closes #3612.Adriaan Moors2010-09-142-30/+36
| | | | | | | | | | | | | given the definitions below (for full context, see test file), before, O0 would work but O would not, now both are accepted: {{{ object O0 extends C {} object O extends C { self => } }}} review by odersky
* closes #3692: make instantiateTypeVar more care...Adriaan Moors2010-09-143-1/+35
| | | | | | | | closes #3692: make instantiateTypeVar more careful so it does not change T's info to >: T <: T. review by odersky
* relax implicit divergence checkAdriaan Moors2010-09-144-5/+11
| | | | | | | | patch contributed by Mark Harrah in http://article.gmane.org/gmane.comp.lang.scala/20700 reviewed by moors and odersky
* Couldn't bear to see sbt seemingly so close but...Paul Phillips2010-09-144-37/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Couldn't bear to see sbt seemingly so close but still unable to run tests. Made some progress but bogged down in scalacheck when I realized things were farther from working than I'd thought. Please forgive this brief expression of frustration, because the despair is palpable: the weeks of work I did on partest was apparently of no interest, and now I'm in here having to fix the same partest bugs again, in a more virulent form. They've evolved into some kind of ant-partest-sbt artificial creature, more fearsome than any one of them could be under its own power. Did we not know we have a whole directory full of pretty code like this? List( "Scala compiler classes in: " + testBuildDir, "Scala version is: " + nsc.Properties.versionMsg, "Scalac options are: " + universe.scalacOpts, "Java binaries in: " + javaBin, "Java runtime is: " + javaInfoString, "Java runtime options: " + (Process.javaVmArguments mkString " "), "Javac options are: " + universe.javacOpts, "Java options are: " + universe.javaOpts, "Source directory is: " + src, "Selected categories: " + (selectedCategories mkString " "), "" ) mkString "\n" It's src/partest-alternative in case anyone wants to consider any of it. At the very least there are individual files or functions which could be cherry picked. -- This patch contains: -- Readability efforts. Twelve parameter functions whose last six parameters are "true,true,failedOnly,true,false,log" are pretty challenging to work with. Changes to the environment variables sbt was setting to look a bit more like what partest expects and will crash without. Sets partest.debug=true if the sbt logger level is at Debug. On my machine all test groups except scalacheck appear to run to completion. Review by moix. (Hello, moix! I am available for assistance if you are in the market for it. You have brought us long suffering ant-ers to the brink of sbt goodness: and now, we enter the fray!)
* Tweaking sbt so it will stop jabbering about sv...Paul Phillips2010-09-142-27/+15
| | | | | | Tweaking sbt so it will stop jabbering about svn info failing when there's a perfectly fine git repo yet to be tried. No review.
* Closes 3627. No review.Iulian Dragos2010-09-131-1/+1
|
* Interpreted absence of any objections in mailin...Paul Phillips2010-09-131-1/+10
| | | | | | | | | Interpreted absence of any objections in mailing list thread http://www.scala-lang.org/node/7398 as implicit encouragement to proceed. Adds complementary implicits to Predef such that the eight primitive types are both boxed and unboxed as the occasion demands. Review by odersky.
* Improving parallel scan. No reviewAleksandar Pokopec2010-09-135-34/+102
|
* Test case closes #2399, no review.Paul Phillips2010-09-111-0/+14
|