minor change (msil)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12419 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2007-07-25 17:10:26 +00:00
parent a6b282e610
commit f7b34ab2b6
3 changed files with 8 additions and 6 deletions

View File

@ -1451,7 +1451,7 @@ GENERATES A DISTRIBUTION
<target name="hudson" depends="build">
<exec executable="test/scalatest" vmlauncher="no">
<arg value="--quick"/>
<arg value="--quick --pos"/>
</exec>
</target>

View File

@ -25,7 +25,7 @@ class Random(self0: System.Random) {
def this(seed: Int) = this(new System.Random(seed))
/** Creates a new random number generator. */
def this() = this(Math.abs(System.Environment.TickCount))
def this() = this(new System.Random(System.Environment.TickCount))
/** Returns the next pseudorandom, uniformly distributed boolean value
* from this random number generator's sequence.

View File

@ -26,7 +26,7 @@ object Platform {
* @param destPos ..
* @param length ..
*/
def arraycopy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int): Unit = {
def arraycopy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int) {
if (!src.isInstanceOf[System.Array]) throw new Exception("src for arraycopy is not an Array; use scala.Array.copy for boxed arrays");
if (!dest.isInstanceOf[System.Array]) throw new Exception("dest for arraycopy is not an Array; use scala.Array.copy for boxed arrays");
System.Array.Copy(src.asInstanceOf[System.Array], srcPos, dest.asInstanceOf[System.Array], destPos, length)
@ -40,9 +40,11 @@ object Platform {
* @return ..
*/
def createArray(elemClass: Class, length: Int): AnyRef =
System.Array.CreateInstance(elemClass, length);
System.Array.CreateInstance(elemClass, length)
def arrayclear(arr: Array[Int]): Unit = System.Array.Clear(arr.asInstanceOf[System.Array], 0, arr.length)
def arrayclear(arr: Array[Int]) {
System.Array.Clear(arr.asInstanceOf[System.Array], 0, arr.length)
}
def getClassForName(name: String): Class = System.Type.GetType(name)
@ -50,7 +52,7 @@ object Platform {
def currentTime: Long = 0L
def collectGarbage: Unit = System.GC.Collect()
def collectGarbage { System.GC.Collect() }
}