diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 14:23:26 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 14:23:26 +0000 |
commit | 5ac5c4c3ce4e93699d4de0f263d264ca5dfbfc23 (patch) | |
tree | 91d32f011564b81594f1c2daf3ba738b2eee27e4 /src | |
parent | 64dc793f3e5044971933a43bfcfecc536faf372f (diff) | |
download | scala-5ac5c4c3ce4e93699d4de0f263d264ca5dfbfc23.tar.gz scala-5ac5c4c3ce4e93699d4de0f263d264ca5dfbfc23.tar.bz2 scala-5ac5c4c3ce4e93699d4de0f263d264ca5dfbfc23.zip |
Closer to having MSIL build again.
Diffstat (limited to 'src')
58 files changed, 68 insertions, 3 deletions
diff --git a/src/dotnet-library/scala/BigInt.scala b/src/dotnet-library/scala/BigInt.scala new file mode 100644 index 0000000000..192d2adbcc --- /dev/null +++ b/src/dotnet-library/scala/BigInt.scala @@ -0,0 +1 @@ +/* BigInt does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/List.scala b/src/dotnet-library/scala/List.scala index a592060f9a..28228cc2f8 100644 --- a/src/dotnet-library/scala/List.scala +++ b/src/dotnet-library/scala/List.scala @@ -1036,9 +1036,17 @@ sealed abstract class List[+A] extends Seq[A] { * <code>a<sub>0</sub>, a<sub>1</sub>, ..., a<sub>n</sub></code>. * @throws Predef.UnsupportedOperationException if the list is empty. */ - override def reduceLeft[B >: A](f: (B, B) => B): B = this match { + override def reduceLeft[B >: A](f: (B, A) => B): B = this match { case Nil => throw new UnsupportedOperationException("Nil.reduceLeft") - case x :: xs => ((xs: List[B]) foldLeft (x: B))(f) + case x :: Nil => x + case x0 :: x1 :: xs => + var acc : B = f(x0, x1) + var these : List[A] = xs + while (!these.isEmpty) { + acc = f(acc, these.head) + these = these.tail + } + acc } /** Combines the elements of this list together using the binary @@ -1051,7 +1059,7 @@ sealed abstract class List[+A] extends Seq[A] { * * @throws Predef.UnsupportedOperationException if the list is empty. */ - override def reduceRight[B >: A](f: (B, B) => B): B = this match { + override def reduceRight[B >: A](f: (A, B) => B): B = this match { case Nil => throw new UnsupportedOperationException("Nil.reduceRight") case x :: Nil => x: B case x :: xs => f(x, xs reduceRight f) diff --git a/src/dotnet-library/scala/collection/jcl/ArrayList.scala b/src/dotnet-library/scala/collection/jcl/ArrayList.scala new file mode 100644 index 0000000000..b708c82a82 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/ArrayList.scala @@ -0,0 +1 @@ +/* ArrayList does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Buffer.scala b/src/dotnet-library/scala/collection/jcl/Buffer.scala new file mode 100644 index 0000000000..e90266c12c --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Buffer.scala @@ -0,0 +1 @@ +/* Buffer does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/BufferIterator.scala b/src/dotnet-library/scala/collection/jcl/BufferIterator.scala new file mode 100644 index 0000000000..4807032991 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/BufferIterator.scala @@ -0,0 +1 @@ +/* BufferIterator does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/BufferWrapper.scala b/src/dotnet-library/scala/collection/jcl/BufferWrapper.scala new file mode 100644 index 0000000000..ba776946e2 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/BufferWrapper.scala @@ -0,0 +1 @@ +/* BufferWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Collection.scala b/src/dotnet-library/scala/collection/jcl/Collection.scala new file mode 100644 index 0000000000..6972e147bb --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Collection.scala @@ -0,0 +1 @@ +/* Collection does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/CollectionWrapper.scala b/src/dotnet-library/scala/collection/jcl/CollectionWrapper.scala new file mode 100644 index 0000000000..7006b11d7e --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/CollectionWrapper.scala @@ -0,0 +1 @@ +/* CollectionWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Conversions.scala b/src/dotnet-library/scala/collection/jcl/Conversions.scala new file mode 100644 index 0000000000..97c99f62a9 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Conversions.scala @@ -0,0 +1 @@ +/* Conversions does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/HashMap.scala b/src/dotnet-library/scala/collection/jcl/HashMap.scala new file mode 100644 index 0000000000..e62738f04f --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/HashMap.scala @@ -0,0 +1 @@ +/* HashMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/HashSet.scala b/src/dotnet-library/scala/collection/jcl/HashSet.scala new file mode 100644 index 0000000000..c2599b23ad --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/HashSet.scala @@ -0,0 +1 @@ +/* HashSet does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Hashtable.scala b/src/dotnet-library/scala/collection/jcl/Hashtable.scala new file mode 100644 index 0000000000..cf07705526 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Hashtable.scala @@ -0,0 +1 @@ +/* Hashtable does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala b/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala new file mode 100644 index 0000000000..e121285da2 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala @@ -0,0 +1 @@ +/* IdentityHashMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/IterableWrapper.scala b/src/dotnet-library/scala/collection/jcl/IterableWrapper.scala new file mode 100644 index 0000000000..076d707d99 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/IterableWrapper.scala @@ -0,0 +1 @@ +/* IterableWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/LinkedHashMap.scala b/src/dotnet-library/scala/collection/jcl/LinkedHashMap.scala new file mode 100644 index 0000000000..77de6a4f44 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/LinkedHashMap.scala @@ -0,0 +1 @@ +/* LinkedHashMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/LinkedHashSet.scala b/src/dotnet-library/scala/collection/jcl/LinkedHashSet.scala new file mode 100644 index 0000000000..3de125b5b1 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/LinkedHashSet.scala @@ -0,0 +1 @@ +/* LinkedHashSet does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/LinkedList.scala b/src/dotnet-library/scala/collection/jcl/LinkedList.scala new file mode 100644 index 0000000000..e512dd45f3 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/LinkedList.scala @@ -0,0 +1 @@ +/* LinkedList does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Map.scala b/src/dotnet-library/scala/collection/jcl/Map.scala new file mode 100644 index 0000000000..aed3a996e8 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Map.scala @@ -0,0 +1 @@ +/* Map does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/MapWrapper.scala b/src/dotnet-library/scala/collection/jcl/MapWrapper.scala new file mode 100644 index 0000000000..77d4700908 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/MapWrapper.scala @@ -0,0 +1 @@ +/* MapWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/MutableIterable.scala b/src/dotnet-library/scala/collection/jcl/MutableIterable.scala new file mode 100644 index 0000000000..87b2d9f639 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/MutableIterable.scala @@ -0,0 +1 @@ +/* MutableIterable does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/MutableIterator.scala b/src/dotnet-library/scala/collection/jcl/MutableIterator.scala new file mode 100644 index 0000000000..1ada29b861 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/MutableIterator.scala @@ -0,0 +1 @@ +/* MutableIterator does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/MutableSeq.scala b/src/dotnet-library/scala/collection/jcl/MutableSeq.scala new file mode 100644 index 0000000000..60132e8785 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/MutableSeq.scala @@ -0,0 +1 @@ +/* MutableSeq does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Ranged.scala b/src/dotnet-library/scala/collection/jcl/Ranged.scala new file mode 100644 index 0000000000..5394b8b56c --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Ranged.scala @@ -0,0 +1 @@ +/* Ranged does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SeqIterator.scala b/src/dotnet-library/scala/collection/jcl/SeqIterator.scala new file mode 100644 index 0000000000..1d952baa0e --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SeqIterator.scala @@ -0,0 +1 @@ +/* SeqIterator does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Set.scala b/src/dotnet-library/scala/collection/jcl/Set.scala new file mode 100644 index 0000000000..5c5bae7b48 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Set.scala @@ -0,0 +1 @@ +/* Set does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SetWrapper.scala b/src/dotnet-library/scala/collection/jcl/SetWrapper.scala new file mode 100644 index 0000000000..448b137163 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SetWrapper.scala @@ -0,0 +1 @@ +/* SetWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Sorted.scala b/src/dotnet-library/scala/collection/jcl/Sorted.scala new file mode 100644 index 0000000000..7fcfe8a6b1 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Sorted.scala @@ -0,0 +1 @@ +/* Sorted does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SortedMap.scala b/src/dotnet-library/scala/collection/jcl/SortedMap.scala new file mode 100644 index 0000000000..dbbc1032d3 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SortedMap.scala @@ -0,0 +1 @@ +/* SortedMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SortedMapWrapper.scala b/src/dotnet-library/scala/collection/jcl/SortedMapWrapper.scala new file mode 100644 index 0000000000..dbf001f4ef --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SortedMapWrapper.scala @@ -0,0 +1 @@ +/* SortedMapWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SortedSet.scala b/src/dotnet-library/scala/collection/jcl/SortedSet.scala new file mode 100644 index 0000000000..6b7351bae2 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SortedSet.scala @@ -0,0 +1 @@ +/* SortedSet does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/SortedSetWrapper.scala b/src/dotnet-library/scala/collection/jcl/SortedSetWrapper.scala new file mode 100644 index 0000000000..e2667debd2 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/SortedSetWrapper.scala @@ -0,0 +1 @@ +/* SortedSetWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/Tests.scala b/src/dotnet-library/scala/collection/jcl/Tests.scala new file mode 100644 index 0000000000..3939b18a48 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/Tests.scala @@ -0,0 +1 @@ +/* Tests does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/TreeMap.scala b/src/dotnet-library/scala/collection/jcl/TreeMap.scala new file mode 100644 index 0000000000..3c6efabca1 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/TreeMap.scala @@ -0,0 +1 @@ +/* TreeMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/TreeSet.scala b/src/dotnet-library/scala/collection/jcl/TreeSet.scala new file mode 100644 index 0000000000..9a32c527f3 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/TreeSet.scala @@ -0,0 +1 @@ +/* TreeSet does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/jcl/WeakHashMap.scala b/src/dotnet-library/scala/collection/jcl/WeakHashMap.scala new file mode 100644 index 0000000000..dbe2039713 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/WeakHashMap.scala @@ -0,0 +1 @@ +/* WeakHashMap does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/mutable/JavaMapAdaptor.scala b/src/dotnet-library/scala/collection/mutable/JavaMapAdaptor.scala new file mode 100644 index 0000000000..fec485876c --- /dev/null +++ b/src/dotnet-library/scala/collection/mutable/JavaMapAdaptor.scala @@ -0,0 +1 @@ +/* JavaMapAdaptor does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/collection/mutable/JavaSetAdaptor.scala b/src/dotnet-library/scala/collection/mutable/JavaSetAdaptor.scala new file mode 100644 index 0000000000..36ba221cb0 --- /dev/null +++ b/src/dotnet-library/scala/collection/mutable/JavaSetAdaptor.scala @@ -0,0 +1 @@ +/* JavaSetAdaptor does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/concurrent/jolib.scala b/src/dotnet-library/scala/concurrent/jolib.scala new file mode 100644 index 0000000000..73cb5bf1e8 --- /dev/null +++ b/src/dotnet-library/scala/concurrent/jolib.scala @@ -0,0 +1 @@ +/* jolib does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/concurrent/ops.scala b/src/dotnet-library/scala/concurrent/ops.scala new file mode 100644 index 0000000000..7251a6a18b --- /dev/null +++ b/src/dotnet-library/scala/concurrent/ops.scala @@ -0,0 +1 @@ +/* ops does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/concurrent/pilib.scala b/src/dotnet-library/scala/concurrent/pilib.scala new file mode 100644 index 0000000000..249110e67e --- /dev/null +++ b/src/dotnet-library/scala/concurrent/pilib.scala @@ -0,0 +1 @@ +/* pilib does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/ref/PhantomReference.scala b/src/dotnet-library/scala/ref/PhantomReference.scala new file mode 100644 index 0000000000..d2bc86f9cf --- /dev/null +++ b/src/dotnet-library/scala/ref/PhantomReference.scala @@ -0,0 +1 @@ +/* PhantomReference does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/ref/ReferenceQueue.scala b/src/dotnet-library/scala/ref/ReferenceQueue.scala new file mode 100644 index 0000000000..cc95c40e46 --- /dev/null +++ b/src/dotnet-library/scala/ref/ReferenceQueue.scala @@ -0,0 +1 @@ +/* ReferenceQueue does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/ref/ReferenceWrapper.scala b/src/dotnet-library/scala/ref/ReferenceWrapper.scala new file mode 100644 index 0000000000..3a954437d9 --- /dev/null +++ b/src/dotnet-library/scala/ref/ReferenceWrapper.scala @@ -0,0 +1 @@ +/* ReferenceWrapper does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/ref/SoftReference.scala b/src/dotnet-library/scala/ref/SoftReference.scala new file mode 100644 index 0000000000..decd2c97ef --- /dev/null +++ b/src/dotnet-library/scala/ref/SoftReference.scala @@ -0,0 +1 @@ +/* SoftReference does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/ref/WeakReference.scala b/src/dotnet-library/scala/ref/WeakReference.scala new file mode 100644 index 0000000000..322d27063f --- /dev/null +++ b/src/dotnet-library/scala/ref/WeakReference.scala @@ -0,0 +1 @@ +/* WeakReference does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/reflect/ScalaBeanInfo.scala b/src/dotnet-library/scala/reflect/ScalaBeanInfo.scala new file mode 100644 index 0000000000..5d4ffb45a5 --- /dev/null +++ b/src/dotnet-library/scala/reflect/ScalaBeanInfo.scala @@ -0,0 +1 @@ +/* ScalaBeanInfo does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/runtime/RichStringBuilder.scala b/src/dotnet-library/scala/runtime/RichStringBuilder.scala new file mode 100644 index 0000000000..67c1c793e6 --- /dev/null +++ b/src/dotnet-library/scala/runtime/RichStringBuilder.scala @@ -0,0 +1 @@ +/* RichStringBuilder does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/testing/Benchmark.scala b/src/dotnet-library/scala/testing/Benchmark.scala new file mode 100644 index 0000000000..1e5cd8c32a --- /dev/null +++ b/src/dotnet-library/scala/testing/Benchmark.scala @@ -0,0 +1 @@ +/* Benchmark does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/testing/SUnit.scala b/src/dotnet-library/scala/testing/SUnit.scala new file mode 100644 index 0000000000..0c657b94ca --- /dev/null +++ b/src/dotnet-library/scala/testing/SUnit.scala @@ -0,0 +1 @@ +/* SUnit does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/text/Document.scala b/src/dotnet-library/scala/text/Document.scala new file mode 100644 index 0000000000..ee6cedacd3 --- /dev/null +++ b/src/dotnet-library/scala/text/Document.scala @@ -0,0 +1 @@ +/* Document does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/Properties.scala b/src/dotnet-library/scala/util/Properties.scala new file mode 100644 index 0000000000..efa7824eca --- /dev/null +++ b/src/dotnet-library/scala/util/Properties.scala @@ -0,0 +1 @@ +/* Properties does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/combinator/RegexParsers.scala b/src/dotnet-library/scala/util/combinator/RegexParsers.scala new file mode 100644 index 0000000000..ffdd88fde2 --- /dev/null +++ b/src/dotnet-library/scala/util/combinator/RegexParsers.scala @@ -0,0 +1 @@ +/* RegexParsers does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/matching/BitField.scala b/src/dotnet-library/scala/util/matching/BitField.scala new file mode 100644 index 0000000000..c7dc224b05 --- /dev/null +++ b/src/dotnet-library/scala/util/matching/BitField.scala @@ -0,0 +1 @@ +/* BitField does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/matching/FixedBitField.scala b/src/dotnet-library/scala/util/matching/FixedBitField.scala new file mode 100644 index 0000000000..2968768401 --- /dev/null +++ b/src/dotnet-library/scala/util/matching/FixedBitField.scala @@ -0,0 +1 @@ +/* FixedBitField does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/matching/MatchableBigInt.scala b/src/dotnet-library/scala/util/matching/MatchableBigInt.scala new file mode 100644 index 0000000000..d862c47121 --- /dev/null +++ b/src/dotnet-library/scala/util/matching/MatchableBigInt.scala @@ -0,0 +1 @@ +/* MatchableBigInt does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/matching/Regex.scala b/src/dotnet-library/scala/util/matching/Regex.scala new file mode 100644 index 0000000000..f7932dacf8 --- /dev/null +++ b/src/dotnet-library/scala/util/matching/Regex.scala @@ -0,0 +1 @@ +/* Regex does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/parsing/CharInputStreamIterator.scala b/src/dotnet-library/scala/util/parsing/CharInputStreamIterator.scala new file mode 100644 index 0000000000..5d22aa4218 --- /dev/null +++ b/src/dotnet-library/scala/util/parsing/CharInputStreamIterator.scala @@ -0,0 +1 @@ +/* CharInputStreamIterator does not exist for the dotnet target */ diff --git a/src/dotnet-library/scala/util/parsing/ast/Binders.scala b/src/dotnet-library/scala/util/parsing/ast/Binders.scala new file mode 100644 index 0000000000..a6abe60729 --- /dev/null +++ b/src/dotnet-library/scala/util/parsing/ast/Binders.scala @@ -0,0 +1 @@ +/* Binders does not exist for the dotnet target */ |