diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-07-23 14:57:46 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-07-23 14:57:46 +0000 |
commit | 11f1b34dde88cc4911e5d126c76c30c67a0b7cc2 (patch) | |
tree | 7d3c87f3c048f338f9d07229ec27e1e3fe2f14b6 /src/library | |
parent | 08a42368c0931dea170b7320cc1bc5389a275548 (diff) | |
download | scala-11f1b34dde88cc4911e5d126c76c30c67a0b7cc2.tar.gz scala-11f1b34dde88cc4911e5d126c76c30c67a0b7cc2.tar.bz2 scala-11f1b34dde88cc4911e5d126c76c30c67a0b7cc2.zip |
Added multidimensional arrays (up to 9 dimensio...
Added multidimensional arrays (up to 9 dimensions).
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Array.scala | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/library/scala/Array.scala b/src/library/scala/Array.scala index aaf72f1c92..b9e58afbed 100644 --- a/src/library/scala/Array.scala +++ b/src/library/scala/Array.scala @@ -189,6 +189,54 @@ object Array { */ final class Array[A](_length: Int) extends RandomAccessSeq.Mutable[A] { + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int, dim8: Int) = { + this(dim1); + throw new Error() + } + + /** Multidimensional array creation */ + def this(dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int, dim6: Int, dim7: Int, dim8: Int, dim9: Int) = { + this(dim1); + throw new Error() + } + /** The length of the array */ def length: Int = throw new Error() |