@@ -6,7 +6,7 @@ sealed trait Tuple extends Any {
66 import Tuple ._
77
88 inline def toArray : Array [Object ] =
9- if (specialize)
9+ /* if (specialize)
1010 inline constValueOpt[BoundedSize[this.type]] match {
1111 case Some(0) =>
1212 $emptyArray
@@ -29,10 +29,10 @@ sealed trait Tuple extends Any {
2929 case None =>
3030 dynamicToArray(this)
3131 }
32- else dynamicToArray(this )
32+ else*/ dynamicToArray(this )
3333
3434 inline def *: [H ] (x : H ): H *: this .type =
35- if (specialize) {
35+ /* if (specialize) {
3636 type Result = H *: this.type
3737 inline constValueOpt[BoundedSize[this.type]] match {
3838 case Some(0) =>
@@ -54,10 +54,10 @@ sealed trait Tuple extends Any {
5454 dynamic_*:[this.type, H](this, x)
5555 }
5656 }
57- else dynamic_*: [this .type , H ](this , x)
57+ else*/ dynamic_*: [this .type , H ](this , x)
5858
5959 inline def ++ (that : Tuple ): Concat [this .type , that.type ] =
60- if (specialize) {
60+ /* if (specialize) {
6161 type Result = Concat[this.type, that.type]
6262 inline constValueOpt[BoundedSize[this.type]] match {
6363 case Some(0) =>
@@ -95,20 +95,20 @@ sealed trait Tuple extends Any {
9595 dynamic_++[this.type, that.type](this, that)
9696 }
9797 }
98- else dynamic_++ [this .type , that.type ](this , that)
98+ else*/ dynamic_++ [this .type , that.type ](this , that)
9999
100100 inline def genericConcat [T <: Tuple ](xs : Tuple , ys : Tuple ): Tuple =
101101 fromArray[T ](xs.toArray ++ ys.toArray)
102102
103103 inline def size : Size [this .type ] =
104- if (specialize) {
104+ /* if (specialize) {
105105 type Result = Size[this.type]
106106 inline constValueOpt[BoundedSize[this.type]] match {
107107 case Some(n) => n.asInstanceOf[Result]
108108 case _ => dynamicSize(this)
109109 }
110110 }
111- else dynamicSize(this )
111+ else*/ dynamicSize(this )
112112}
113113
114114object Tuple {
@@ -175,7 +175,7 @@ object Tuple {
175175 }
176176
177177 inline def fromArray [T <: Tuple ](xs : Array [Object ]): T =
178- if (specialize)
178+ /* if (specialize)
179179 inline constValue[BoundedSize[T]] match {
180180 case 0 => ().asInstanceOf[T]
181181 case 1 => Tuple1(xs(0)).asInstanceOf[T]
@@ -202,7 +202,7 @@ object Tuple {
202202 case 22 => Tuple22(xs(0), xs(1), xs(2), xs(3), xs(4), xs(5), xs(6), xs(7), xs(8), xs(9), xs(10), xs(11), xs(12), xs(13), xs(14), xs(15), xs(16), xs(17), xs(18), xs(19), xs(20), xs(21)).asInstanceOf[T]
203203 case _ => TupleXXL(xs).asInstanceOf[T]
204204 }
205- else dynamicFromArray[T ](xs)
205+ else */ dynamicFromArray[T ](xs)
206206
207207 def dynamicFromArray [T <: Tuple ](xs : Array [Object ]): T = xs.length match {
208208 case 0 => ().asInstanceOf [T ]
@@ -297,7 +297,7 @@ abstract sealed class NonEmptyTuple extends Tuple {
297297 import NonEmptyTuple ._
298298
299299 inline def head : Head [this .type ] =
300- if (specialize) {
300+ /* if (specialize) {
301301 type Result = Head[this.type]
302302 val resVal = inline constValueOpt[BoundedSize[this.type]] match {
303303 case Some(1) =>
@@ -322,10 +322,10 @@ abstract sealed class NonEmptyTuple extends Tuple {
322322 }
323323 resVal.asInstanceOf[Result]
324324 }
325- else dynamicHead[this .type ](this )
325+ else*/ dynamicHead[this .type ](this )
326326
327327 inline def tail : Tail [this .type ] =
328- if (specialize) {
328+ /* if (specialize) {
329329 type Result = Tail[this.type]
330330 inline constValueOpt[BoundedSize[this.type]] match {
331331 case Some(1) =>
@@ -348,16 +348,18 @@ abstract sealed class NonEmptyTuple extends Tuple {
348348 dynamicTail[this.type](this)
349349 }
350350 }
351- else dynamicTail[this .type ](this )
351+ else*/ dynamicTail[this .type ](this )
352352
353+ /*
353354 inline def fallbackApply(n: Int) =
354355 inline constValueOpt[n.type] match {
355356 case Some(n: Int) => error("index out of bounds: ", n)
356357 case None => dynamicApply[this.type](this, n)
357358 }
359+ */
358360
359361 inline def apply (n : Int ): Elem [this .type , n.type ] =
360- if (specialize) {
362+ /* if (specialize) {
361363 type Result = Elem[this.type, n.type]
362364 inline constValueOpt[Size[this.type]] match {
363365 case Some(1) =>
@@ -405,7 +407,7 @@ abstract sealed class NonEmptyTuple extends Tuple {
405407 case _ => fallbackApply(n).asInstanceOf[Result]
406408 }
407409 }
408- else dynamicApply[this .type ](this , n)
410+ else*/ dynamicApply[this .type ](this , n)
409411}
410412
411413object NonEmptyTuple {
0 commit comments