Make Array.indices extension property, move to stdlib

This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
This commit is contained in:
Alexander Udalov
2014-11-14 20:56:27 +03:00
parent 36a9a99b4f
commit 93696ff9bd
22 changed files with 234 additions and 294 deletions
-2
View File
@@ -24,7 +24,5 @@ public class Array<reified T>(size: Int, init: (Int) -> T) : Cloneable {
public fun iterator(): Iterator<T>
public val indices: IntRange
public override fun clone(): Array<T>
}
-16
View File
@@ -26,8 +26,6 @@ public class ByteArray(size: Int) : Cloneable {
public fun iterator(): ByteIterator
public val indices: IntRange
public override fun clone(): ByteArray
}
@@ -39,8 +37,6 @@ public class CharArray(size: Int) : Cloneable {
public fun iterator(): CharIterator
public val indices: IntRange
public override fun clone(): CharArray
}
@@ -52,8 +48,6 @@ public class ShortArray(size: Int) : Cloneable {
public fun iterator(): ShortIterator
public val indices: IntRange
public override fun clone(): ShortArray
}
@@ -65,8 +59,6 @@ public class IntArray(size: Int) : Cloneable {
public fun iterator(): IntIterator
public val indices: IntRange
public override fun clone(): IntArray
}
@@ -78,8 +70,6 @@ public class LongArray(size: Int) : Cloneable {
public fun iterator(): LongIterator
public val indices: IntRange
public override fun clone(): LongArray
}
@@ -91,8 +81,6 @@ public class FloatArray(size: Int) : Cloneable {
public fun iterator(): FloatIterator
public val indices: IntRange
public override fun clone(): FloatArray
}
@@ -104,8 +92,6 @@ public class DoubleArray(size: Int) : Cloneable {
public fun iterator(): DoubleIterator
public val indices: IntRange
public override fun clone(): DoubleArray
}
@@ -117,8 +103,6 @@ public class BooleanArray(size: Int) : Cloneable {
public fun iterator(): BooleanIterator
public val indices: IntRange
public override fun clone(): BooleanArray
}