summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2007-05-01 11:47:56 +0000
committermihaylov <mihaylov@epfl.ch>2007-05-01 11:47:56 +0000
commit86e18d84dc41c3064734ff866072a9c71475939c (patch)
tree807efcb5e7775a99262433368b3e3ccae9c6f728 /src/dotnet-library
parentcf626598eabab3f238f255af162e3f71a6a18d2e (diff)
downloadscala-86e18d84dc41c3064734ff866072a9c71475939c.tar.gz
scala-86e18d84dc41c3064734ff866072a9c71475939c.tar.bz2
scala-86e18d84dc41c3064734ff866072a9c71475939c.zip
Made mutable.{Set, BitSet} platform-independent
Diffstat (limited to 'src/dotnet-library')
-rw-r--r--src/dotnet-library/scala/compat/Platform.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotnet-library/scala/compat/Platform.scala b/src/dotnet-library/scala/compat/Platform.scala
index 161423bedb..8b31b52539 100644
--- a/src/dotnet-library/scala/compat/Platform.scala
+++ b/src/dotnet-library/scala/compat/Platform.scala
@@ -17,6 +17,7 @@ import Predef._
object Platform {
type StackOverflowError = System.StackOverflowException
+ type ConcurrentModificationException = System.Exception
/**
* @param src ..
@@ -41,6 +42,8 @@ object Platform {
def createArray(elemClass: Class, length: Int): AnyRef =
System.Array.CreateInstance(elemClass, length);
+ def arrayclear(arr: Array[Int]): Unit = System.Array.Clear(arr.asInstanceOf[System.Array], 0, arr.length)
+
def getClassForName(name: String): Class = System.Type.GetType(name)
val EOL = System.Environment.NewLine