summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixed memory leaks for streams.Martin Odersky2009-08-187-119/+169
|
* fix for #2264Lukas Rytz2009-08-181-0/+3
|
* Fix for #2164.Paul Phillips2009-08-181-1/+7
|
* Skeletal exploratory implementations ofPaul Phillips2009-08-172-0/+85
| | | | | scala.io.{ Directory, Path }.
* Added bytes() method to File.Paul Phillips2009-08-171-1/+12
| | | | | | | | | patches from today you can write something like this: io.File("/etc/passwd").bytes grouped 512 map (_.sum) mkString ", " res1: String = 45481, 46001, 45110, 45559, 45967, 29543
* More fleshing out Codec.Paul Phillips2009-08-173-31/+38
| | | | | | positioning change. Deleted instead of deprecated the two argument version of Iterator.iterate since it did not exist in 2.7.
* Fixed both versions of Iterator.iterate, which ...Paul Phillips2009-08-171-11/+4
| | | | | | | | | | | | | | | | | | | Fixed both versions of Iterator.iterate, which were a bit off, and gave them type parameters. Before: Iterator.iterate(5, 10)(_ + 1) toList res0: List[Int] = List(6, 6, 6, 6, 6, 6, 6, 6, 6, 6) After: Iterator.iterate(5L)(_ + 1) take 10 toList res1: List[Long] = List(5, 6, 7, 8, 9, 10, 11, 12, 13, 14) Also, I deprecated the two argument version because def iterate[T](start: T, len: Int)(f: T => T) is identical to iterate(start)(f) take len
* Updated BufferedSource to use Iterator.continua...Paul Phillips2009-08-171-16/+1
| | | | | Updated BufferedSource to use Iterator.continually.
* Added Iterator.continually, becausePaul Phillips2009-08-171-1/+13
| | | | | | | | val it = Stream continually (foo) iterator it.foldLeft(...) grows without bound, and there needs to be a simple reliable way to repeatedly side effect.
* Added two new methods to Iterator, each of whic...Paul Phillips2009-08-171-0/+73
| | | | | | | | | | | | | | | Added two new methods to Iterator, each of which creates new Iterators based on the original. Example usages: (1 to 5).iterator grouped 3 toList = List(List(1, 2, 3), List(4, 5)) (1 to 5).iterator sliding 3 toList = List(List(1, 2, 3), List(2, 3, 4), List(3, 4, 5)) (1 to 10).iterator.sliding(4, step = 3) toList = List(List(1, 2, 3, 4), List(4, 5, 6, 7), List(7, 8, 9, 10))
* fixed typo #2263Lukas Rytz2009-08-171-1/+1
|
* Various work on Codec/File/Source getting it in...Paul Phillips2009-08-174-84/+98
| | | | | | | Various work on Codec/File/Source getting it in consistent shape and ready for revisiting Iterator vs. Iterable and Source's assumption of Char.
* Adding more and fleshing out convenience functi...Paul Phillips2009-08-161-44/+59
| | | | | Adding more and fleshing out convenience functions in io.File.
* Restored missing pieces of some of my patches w...Paul Phillips2009-08-163-24/+14
| | | | | | | Restored missing pieces of some of my patches which were accidentally reverted in r17680. This one includes StringBuilder cleanups and tail-recursive drop in Iterator.
* Restoring tail recursive version of List.dropWh...Paul Phillips2009-08-161-3/+11
| | | | | Restoring tail recursive version of List.dropWhile.
* Improvements in positions assigned to expresssi...Miles Sabin2009-08-163-5/+6
| | | | | | Improvements in positions assigned to expresssions using assignment operators.
* A variety of work on scala.io.{ File, Source } ...Paul Phillips2009-08-165-172/+173
| | | | | | | | | | | | | A variety of work on scala.io.{ File, Source } with changes including: getLines() now takes a line separator argument (defaults to platform line.separator) and drops the newlines. scala.io.File adds several convenience methods. The mechanisms for configuring Source are more consistent. This is not complete, performance issues remain to be investigated.
* 1.Martin Odersky2009-08-164-40/+91
| | | | | 2. Relaxed bounds checking rules for existential types.
* Fixed #1560 (which was a typing hole, so some l...Martin Odersky2009-08-157-34/+68
| | | | | | Fixed #1560 (which was a typing hole, so some library classes had to be fixed)
* Blocks can now end in definitions.Martin Odersky2009-08-142-3/+4
|
* Merge branch 'ticket/513'Adriaan Moors2009-08-141-5/+10
|
* improving fix of #2246: optimised isDifferentTy...Adriaan Moors2009-08-141-37/+33
| | | | | | | | | | | | | | | | | | | improving fix of #2246: optimised isDifferentTypeConstructor removed typeConstructor(Boolean), using hasDifferentTypeSymbol instead switched to new subtyping algorithm (isSubType2) substitution now uses appliedType appliedType ensures Any/Nothing never have type args (so don't need to shortcut isSubArgs in firstTry when sym == AnyClass) appliedType ignores TypeVar's for now (must deal with them, since they arise during substitution) when tcpoly infer is integrated, TypeVar's also have type arguments and this case in appliedType must be updated maybe appliedType should become a member of Type (and rename to applyTypeArgs?)
* add @since scaladoc tag to scala.* typesstepancheg2009-08-1355-4/+83
| | | | | only for classes created after Scala 1.4
* drop svn:executable flag from source filesstepancheg2009-08-1314-0/+0
|
* fixed #2251Adriaan Moors2009-08-131-1/+2
|
* fixed #2246 type checker looping on pos/contrib701Adriaan Moors2009-08-131-30/+42
| | | | | | | | | | | | | be more careful in isSubType for abstract types: type *constructors* must be different, not the whole type, which includes type arguments typeConstructor needed to instantiate the resulting type constructor with fresh type arguments (derived from type params), otherwise we end up in the higher-kinded case, and isDifferentTypeConstructor might try to compare polytypes with type params that have different (higher-order) arities --> this may still arise on other cases, though -- should fix this while working on #2210
* fix for 513: use deep ForeachTypeTraverser in d...Adriaan Moors2009-08-136-10/+7
| | | | | | fix for 513: use deep ForeachTypeTraverser in doTypeTraversal instead of shallow one test case+checkfile for #513
* Adds Source.stdin convenience method.Paul Phillips2009-08-121-0/+4
|
* Fixed the resolveType method per ticket #2207.Derek Chen-Beker2009-08-121-2/+5
|
* Fix for #2249.Paul Phillips2009-08-121-1/+1
|
* Fix of #1722Martin Odersky2009-08-111-4/+13
|
* Fixed erroneous debug statement in erasure.Martin Odersky2009-08-101-1/+1
|
* Fixed #1642Martin Odersky2009-08-102-2/+13
|
* fixed t1705.Martin Odersky2009-08-102-61/+14
|
* Fixed specialization of lazy values.Iulian Dragos2009-08-071-10/+19
|
* Fixed #2235.Paul Phillips2009-08-071-1/+1
|
* Revert "fixed #2208"Adriaan Moors2009-08-062-8/+2
| | | | | This reverts commit 2d437f2a62d7127abe907d61118ea448c9ad6c59.
* fixed #2208Adriaan Moors2009-08-062-2/+8
|
* fixed ticket #2197Adriaan Moors2009-08-061-2/+8
|
* Fix for #1498.Paul Phillips2009-08-053-65/+26
|
* Implemented #2191.Philipp Haller2009-08-041-0/+10
|
* Applied patch for #2150.Philipp Haller2009-08-041-0/+10
|
* Fixed #2028 and #2100.Philipp Haller2009-08-047-5/+76
|
* Fixed NPE in scala.ref.WeakReference and scala....Philipp Haller2009-08-032-2/+4
| | | | | Fixed NPE in scala.ref.WeakReference and scala.ref.SoftReference.
* Applied patch for #2145.Philipp Haller2009-08-032-24/+27
|
* Fixed some problems with scope completionMartin Odersky2009-08-032-10/+24
|
* Added the scala.concurrent.TaskRunner and scala...Philipp Haller2009-08-0328-88/+285
| | | | | | | Added the scala.concurrent.TaskRunner and scala.concurrent.AsyncInvokable abstractions with corresponding refactorings in scala.actors and scala.concurrent.
* Re-enabled forwarders and moved the formerly fa...Paul Phillips2009-08-032-9/+12
| | | | | | Re-enabled forwarders and moved the formerly failing tests for #363 and #1745 out of pending.
* Fixed startup problem for interactive GlobalMartin Odersky2009-08-031-1/+1
|
* Deleted IDeSupport.Martin Odersky2009-08-029-1186/+148
|