summaryrefslogtreecommitdiff
path: root/newsources
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-19 13:49:03 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-19 13:49:03 +0000
commitac849228490d5a0e2d3f048d649297d5c59b6ade (patch)
tree6314f2c06f37e67dec5827c3f94e25cf844a085c /newsources
parentd6c0efe5b4b89a0337f1cdcdabf8c607d81f4ae1 (diff)
downloadscala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.gz
scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.bz2
scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.zip
Switching to the new build system and to the ne...
Switching to the new build system and to the new build system. This is a MAJOR commit, so be careful when updating.
Diffstat (limited to 'newsources')
-rw-r--r--newsources/scala/Array.scala18
-rw-r--r--newsources/scala/CaseClass.scala32
-rw-r--r--newsources/scala/MatchError.scala40
-rw-r--r--newsources/scala/ScalaObject.scala20
4 files changed, 0 insertions, 110 deletions
diff --git a/newsources/scala/Array.scala b/newsources/scala/Array.scala
deleted file mode 100644
index b1f15e1b6d..0000000000
--- a/newsources/scala/Array.scala
+++ /dev/null
@@ -1,18 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id$
-
-package scala;
-
-final class Array[A](_length: Int) extends Cloneable with java.io.Serializable with Seq[A] {
- def length: Int = throw new Error();
- def apply(i: Int): A = throw new Error();
- def update(i: Int, x: A): Unit = throw new Error();
- def elements: Iterator[A] = throw new Error();
-}
diff --git a/newsources/scala/CaseClass.scala b/newsources/scala/CaseClass.scala
deleted file mode 100644
index e644a03750..0000000000
--- a/newsources/scala/CaseClass.scala
+++ /dev/null
@@ -1,32 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2004, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-** $Id$
-\* */
-
-package scala;
-
-/** defines an access function for instances of case classes
- *
- * @author Burak Emir
- */
-trait CaseClass extends AnyRef {
-
- /** for a case class A(x_0,...,x_(k-1)), returns x_i for 0 &lt;= i &lt; k,
- ** null otherwise
- */
- def caseElement(n: Int): Any ;
-
- /** need also, for reflection
- def setCaseElement(n: Int, v: Any): unit
- */
-
- /** for a case class A(x_0,...,x_(k-1)), returns k
- */
- def caseArity: Int;
-
- def caseName: String;
-}
diff --git a/newsources/scala/MatchError.scala b/newsources/scala/MatchError.scala
deleted file mode 100644
index 4979df8717..0000000000
--- a/newsources/scala/MatchError.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-** **
-** $Id$
-\* */
-package scala;
-
-
-/** This class implements errors which are thrown whenever an
- * object doesn't match any pattern of a pattern matching
- * expression.
- *
- * @author Matthias Zenger
- * @author Martin Odersky
- * @version 1.1, 05/03/2004
- */
-object MatchError {
-
- // todo: change pattern matcher so that dummy type parameter T can be removed.
- def fail[T](source: String, line: Int): All = throw new MatchError(source, line);
-
- def report(source: String, line: Int, obj: Any) =
- try {
- throw new MatchError(source, line, obj.toString())
- } catch {
- case e: MatchError => throw e
- case e: Throwable => throw new MatchError(source, line)
- }
-}
-
-final class MatchError(msg: String) extends Error(msg) {
- def this(source: String, line: Int) =
- this(" in '" + source + "' at line " + line);
- def this(source: String, line: Int, obj: String) =
- this("for object " + obj + " in '" + source + "' at line " + line);
-}
diff --git a/newsources/scala/ScalaObject.scala b/newsources/scala/ScalaObject.scala
deleted file mode 100644
index 21c1fdbfba..0000000000
--- a/newsources/scala/ScalaObject.scala
+++ /dev/null
@@ -1,20 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2005, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id$
-
-package scala;
-
-trait ScalaObject extends AnyRef {
-
- /** This method is needed for optimizing pattern matching expressions
- * which match on constructors of case classes.
- */
- def $tag(): Int = 0;
-
-}